app/Http/Controllers/ExtraWordsController.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($shopId)
    {
        if (Auth::check() and Auth::user()->type == 'admin') {
			$shop = Shop::find($shopId);
			return view('extrawords.create', compact('shop'));
		}
		else {
			return redirect('/login');
		}
    }
public function create ( $ shopId ) { if ( Auth :: check ( ) and Auth :: user ( ) -> type == 'admin' ) { $ shop = Shop :: find ( $ shopId ) ; return view ( 'extrawords.create' , compact ( 'shop' ) ) ; } else { return redirect ( '/login' ) ; } }
Show the form for creating a new resource.
Show the form for creating a new resource .