コード例 #1
0
 public function index()
 {
     if (Auth::user()->can('read-status')) {
         $status = AgreementStatus::all();
         return view('agreement::status.index', compact('status'));
     }
     return redirect('auth/logout');
 }