Guest User

Untitled

a guest
Jan 14th, 2020
63
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Route::resource('article', 'ArticleController');
  2. Route::group(['middleware' => ['user', 'verified']], function()
  3. {
  4.     Route::resource('article', 'ArticleController', ['only' => ['create']]);
  5. });
  6. Route::group(['middleware' => 'vlastnik'], function()
  7. {
  8.     Route::resource('article', 'ArticleController', ['only' => ['edit', 'delete']]);
  9. });
RAW Paste Data