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
upgrade 5.2 to 5.5
Trait 'Illuminate\Foundation\Auth\Access\AuthorizesResources' not found
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;
}