app/Http/Controllers/Admin/LanguagesController.php
/**
     * Store a newly created resource in storage.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return \Illuminate\Http\Response
     */
Store a newly created resource in storage.
Store a newly created resource in storage .
public function store(LanguageRequest $request)
    {
        $language = new Language($request->all());
        $language -> user_id = Auth::id();
        if($language -> save()){
            return redirect()->route('languages.index');
        }
    }
public function store ( LanguageRequest $ request ) { $ language = new Language ( $ request -> all ( ) ) ; $ language -> user_id = Auth :: id ( ) ; if ( $ language -> save ( ) ) { return redirect ( ) -> route ( 'languages.index' ) ; } }
Store a newly created resource in storage.
Store a newly created resource in storage .
//Session::flash('message', 'Successfully created nerd!');