app/Http/Controllers/ProjectController.php
/**
     * Update the specified resource in storage.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  \App\Models\Post  $post
     * @return \Illuminate\Http\Response
     */
Update the specified resource in storage.
Update the specified resource in storage .
public function update(Request $request, Post $post)
    {
        $request->validate([
            'name' => 'required',
            'language' => 'required',
            'frameworks' => 'required',
        ]);
        $post->update($request->all());
        return redirect()->route('posts.index');
    }
public function update ( Request $ request , Post $ post ) { $ request -> validate ( [ 'name' => 'required' , 'language' => 'required' , 'frameworks' => 'required' , ] ) ; $ post -> update ( $ request -> all ( ) ) ; return redirect ( ) -> route ( 'posts.index' ) ; }
Update the specified resource in storage.
Update the specified resource in storage .
//