app/Http/Controllers/ControllerSubject.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(RequestSubject $request)
    {
        $subject = $request->all();
        Project::create($subject);
        return redirect()->route('subjects.index');
    }
public function store ( RequestSubject $ request ) { $ subject = $ request -> all ( ) ; Project :: create ( $ subject ) ; return redirect ( ) -> route ( 'subjects.index' ) ; }
Store a newly created resource in storage.
Store a newly created resource in storage .