-4
I am getting this error in my code at the end of the file, I could not find the error in the code:
Syntax errors, Unexpected end of file.
Here is my code from the web.php file that is giving the error:
<?php
use Illuminate\Support\Facades\Route;
use App\Http\controllers\admin\AuthAdminController;
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/
// Route::get('url', [Controller::class, 'classe']);
Route::get('/', function () {
return view('welcome');
});
/**
* Admin
*/
Route::group(['middleware' => ['authAdmin']], function () {
Route::group(['prefix' => 'admin'], function () {
Route::get('/', [AuthAdminController::class, 'dashboard'])->name('admin');
});
Route::get('/admin/login', function(){
return view('admin/login');
})->name('admin.login');
/**
* Fim Admin
*/
Auth::routes();
Route::get('/home', [App\Http\Controllers\HomeController::class, 'index'])->name('home');