Laravel membuat pengontrol sumber daya
php artisan make:controller PhotoController --resource --model=Photo
Leonardo Dal Ronco
php artisan make:controller PhotoController --resource --model=Photo
public function index()
{
return redirect()->route('index');
}