如果出現(xiàn)
call to undefined method Illuminate\Database\Query\Builder::lists()
這個(gè)錯(cuò)誤,是因?yàn)?.3中Builder中的lists方法換了個(gè)名字pluck(),
所以把Jobs/PostFormFields.php中的lists()方法換為pluck()方法就好了。
另外就是post/create.blade.php 和post/edit.blade.php 視圖中的路由器使用的是route('admin.post.store')這種形式寫(xiě)的,實(shí)際上web路由中并沒(méi)有對(duì)應(yīng)的名字,所以還是換為admin/post這樣的寫(xiě)法比較好,也不會(huì)再報(bào)錯(cuò)了。
在5.3里執(zhí)行php artisan make:job
文件里會(huì)有implements ShouldQueue,這個(gè)要?jiǎng)h掉,否則會(huì)報(bào)錯(cuò)。實(shí)際上教程里也沒(méi)有implements 隊(duì)列相關(guān)的東西。
參考教程:http://laravelacademy.org/post/2358.html