1 頁 (共 1 頁)

upgrade 5.2 to 5.5

發表於 : 2018-01-03 10:02:26
yehlu
1.Install Laravel 5.5
2.Copy resource/view
3.Copy public
4.Add routers/web.php
5.Copy Controller
6.Copy Models
7.add New Package

Trait 'Illuminate\Foundation\Auth\Access\AuthorizesResources' not found

發表於 : 2018-01-03 10:03:19
yehlu
https://stackoverflow.com/questions/376 ... -not-found

代碼: 選擇全部

namespace App\Http\Controllers;

use Illuminate\Foundation\Bus\DispatchesJobs;
use Illuminate\Routing\Controller as BaseController;
use Illuminate\Foundation\Validation\ValidatesRequests;
use Illuminate\Foundation\Auth\Access\AuthorizesRequests;
//use Illuminate\Foundation\Auth\Access\AuthorizesResources;

class Controller extends BaseController
{
    //use AuthorizesRequests, AuthorizesResources, DispatchesJobs, ValidatesRequests;
    use AuthorizesRequests, DispatchesJobs, ValidatesRequests;
}