app/Http/Controllers/ProjectController.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)
    {
        $request->validate([
            'name' => 'required',
            'language' => 'required',
            'frameworks' => 'required',
        ]);
        Post::create($request->all());
        return redirect()->route('posts.index')->with('success', 'Project Added');
    }
public function store ( Request $ request ) { $ request -> validate ( [ 'name' => 'required' , 'language' => 'required' , 'frameworks' => 'required' , ] ) ; Post :: create ( $ request -> all ( ) ) ; return redirect ( ) -> route ( 'posts.index' ) -> with ( 'success' , 'Project Added' ) ; }
Store a newly created resource in storage.
Store a newly created resource in storage .
//