How to make a button that exits in a sleeping owl?

Was a project with his admin. Removed admin and the files for normal users left. The guide from off site downloaded sleeping owl. All the rules up, I can not make the output from the admin panel. Requests login when entering the admin area done, but as a way to do not know. Standard I have used
<a href="{{ route('logout') }}" onclick="event.preventDefault(); document.getElementById('logout-form').submit();">
Output
</a>
 <form id="logout-form" action="{{ route('logout') }}" method="POST" style="display: none;">
 {{ csrf_field() }}
</form>


If I was prescribed for sleeping owl
[
 'title' => 'Exit',
 'icon' => 'fa fa-sign-out-alt',
 'url' => route('logout'),
 ],


It writes that this router is not, and never loaded the page.
Here is my routes/web.php
Route::get('/blog/category/{slug?}', 'BlogController@category')->name('category');
Route::get('/news/article/{slug?}', 'BlogController@article')->name('article');


//Route::group(['prefix'=>'admin', 'namespace'=>'Admin', 'middleware'=>['auth']], function(){
// Route::get('/', 'DashboardController@dashboard')->name('admin.index');
// Route::resource('/category', 'CategoryController', ['as'=>'admin']);
// Route::resource('/article', 'ArticleController', ['as'=>'admin']);
//
//});


Route::get('/news', 'BlogController@news')->name('news');

Route::get('/', function () {
 return view('index');
})->name('index');

Auth::routes();
June 7th 19 at 14:22
1 answer
June 7th 19 at 14:24

Find more questions by tags Laravel