Skip to content

Instantly share code, notes, and snippets.

@uno-de-piera

uno-de-piera/web.php Secret

Last active May 31, 2020
Embed
What would you like to do?
<?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