-
-
Save uno-de-piera/879e82dc764184cada07b260d12ca42e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
Route::group(['prefix' => 'frameworks', 'middleware' => 'auth'], function() | |
{ | |
Route::get('/create', function() | |
{ | |
return view('frameworks.form'); | |
}); | |
Route::post('/store', function(\App\Http\Requests\FrameworksRequest $frameworksRequest) | |
{ | |
$framework = new \App\Framework(); | |
$framework->fill($frameworksRequest->all()); | |
$framework->save(); | |
return redirect('frameworks/create')->with('message', 'Framework guardado correctamente'); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment