Skip to content

Instantly share code, notes, and snippets.

@uno-de-piera
Last active May 31, 2020 11:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save uno-de-piera/879e82dc764184cada07b260d12ca42e to your computer and use it in GitHub Desktop.
Save uno-de-piera/879e82dc764184cada07b260d12ca42e to your computer and use it in GitHub Desktop.
<?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