不了了了了了之

687 经验值

如图所示,提示应该改为dynamic的方法,但是如果我把 :: 换成 -> 反而我的unit test就报错了。
所以,目前情况下,phpunit是运行正常的,所以,如何修改phpstorm的识别方法?

    public function line($line)
    {
        return $this->with($line);
    }

    /**
     * Add a line of text to the notification.
     *
     * @param  \Illuminate\Notifications\Action|string|array  $line
     * @return $this
     */
    public function with($line)
    {
        if ($line instanceof Action) {
            $this->action($line->text, $line->url);
        } elseif (! $this->actionText) {
            $this->introLines[] = $this->formatLine($line);
        } else {
            $this->outroLines[] = $this->formatLine($line);
        }

        return $this;
    }
Collection {#572 ▼ #items: array:1 [▼ 0 => Tag {#573 ▼ #guarded: array:1 [▶] #primaryKey: "id" #table: "tags" #connection: "mysql" #keyType: "int" +incrementing: true #with: [] #withCount: [] #perPage: 15 +exists: true +wasRecentlyCreated: false #attributes: array:6 [▶] #original: array:8 [▶] #casts: [] #dates: [] #dateFormat: null #appends: [] #events: [] #observables: [] #relations: array:1 [▶] #touches: [] +timestamps: true #hidden: [] #visible: [] #fillable: [] } ] }

'''
Collection {#572 ▼ #items: array:1 [▼ 0 => Tag {#573 ▼ #guarded: array:1 [▶] #primaryKey: "id" #table: "tags" #connection: "mysql" #keyType: "int" +incrementing: true #with: [] #withCount: [] #perPage: 15 +exists: true +wasRecentlyCreated: false #attributes: array:6 [▶] #original: array:8 [▶] #casts: [] #dates: [] #dateFormat: null #appends: [] #events: [] #observables: [] #relations: array:1 [▶] #touches: [] +timestamps: true #hidden: [] #visible: [] #fillable: [] } ] }
'''

Collection {#572 ▼
  #items: array:1 [▼
    0 => Tag {#573 ▼
      #guarded: array:1 [▶]
      #primaryKey: "id"
      #table: "tags"
      #connection: "mysql"
      #keyType: "int"
      +incrementing: true
      #with: []
      #withCount: []
      #perPage: 15
      +exists: true
      +wasRecentlyCreated: false
      #attributes: array:6 [▶]
      #original: array:8 [▶]
      #casts: []
      #dates: []
      #dateFormat: null
      #appends: []
      #events: []
      #observables: []
      #relations: array:1 [▶]
      #touches: []
      +timestamps: true
      #hidden: []
      #visible: []
      #fillable: []
    }
  ]
}

这是它的链接:

http://localhost/password/reset/88157b55d6d77ee3b8f04e2b4b67d1fe6984bb44b5d3e9472c74308d299d6fa2

上图打开以后得到这个:

但是如果我在他的地址中的localhost后面加上端口号8000就能打开了

http://localhost:8000/password/reset/88157b55d6d77ee3b8f04e2b4b67d1fe6984bb44b5d3e9472c74308d299d6fa2

所以想请问,如何修改这个默认的地址链接
又或者,是因为我使用localhost而不是虚拟机出了问题吗?

我后来实测发现title是有了,但是titile还是在。所以就直接重新写了。。。 anyways, thanks for getting back to me

就是我在save into database的时候提示title写成了titile,所以现在除了重新写一个变量,有什么方法可以在原来写的变量里把titile改成title然后继续save into database