app/Http/Controllers/ListDocController.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(Request $request)
    {
        $model = new Document();
        $model->fill($request->all());
        $model->save();
        return redirect(route('documents.index'));
    }
public function store ( Request $ request ) { $ model = new Document ( ) ; $ model -> fill ( $ request -> all ( ) ) ; $ model -> save ( ) ; return redirect ( route ( 'documents.index' ) ) ; }
Store a newly created resource in storage.
Store a newly created resource in storage .
/*dd($request);*/