Level 1
done!
I solved it that way. Can one do it like this or
Route::name('advertisement.')->group(function () {
Route::middleware('auth', 'can:is-privat')->group(function () {
if(auth()) {
Route::view('/', 'advertisement.index');
} else {
return redirect('login');
}
});
});
Thats work's