Laravel Create Resource Controller
php artisan make:controller PhotoController --resource --model=Photo
Leonardo Dal Ronco
php artisan make:controller PhotoController --resource --model=Photo
public function edit(Post $post)
{
Gate::authorize('update',$post);
return view('post.edit',compact('post'));
}
public function edit($id)
{
$user=User::find($id);
return view('editview')->with('user', $user);
}