app/Http/Controllers/BukuController.php
/**
     * Show the form for creating a new resource.
     *
     * @return \Illuminate\Http\Response
     */
Show the form for creating a new resource.
@return \Illuminate\Http\Response
Show the form for creating a new resource . @return \ Illuminate \ Http \ Response
public function create()
    {
        if(Auth::user()->level == 'user') {
            Alert::info('Oopss..', 'Anda dilarang masuk ke area ini.');
            return redirect()->to('/');
        }
        return view('Admin.Buku.create');
    }
public function create ( ) { if ( Auth :: user ( ) -> level == 'user' ) { Alert :: info ( 'Oopss..' , 'Anda dilarang masuk ke area ini.' ) ; return redirect ( ) -> to ( '/' ) ; } return view ( 'Admin.Buku.create' ) ; }
Show the form for creating a new resource.
Show the form for creating a new resource .