irankhosravi
1 month ago

Route [] not defined.

Posted 1 month ago by irankhosravi

What is this error?

error

web.php

 Route::group([], function () {
    // Authentication Routes...
    Route::get('login', 'Auth\[email protected]')->name('login');
    Route::post('login', 'Auth\[email protected]');
    Route::post('logout', 'Auth\[email protected]')->name('logout');

    // Registration Routes...
    if ($options['register'] ?? true) {
        Route::get('register', 'Auth\[email protected]')->name('register');
        Route::post('register', 'Auth\[email protected]');
    }

    // Registration Routes...
    if ($options['marketing'] ?? true) {
        Route::get('marketing', 'Auth\[email protected]')->name('marketing');
        Route::post('marketing', 'Auth\[email protected]');
    }

    // Password Reset Routes...
    if ($options['reset'] ?? true) {
        Route::get('password/reset', 'Auth\[email protected]')->name('password.request');
        Route::post('password/email', 'Auth\[email protected]')->name('password.email');
        Route::get('password/reset/{token}', 'Auth\[email protected]')->name('password.reset');
        Route::post('password/reset', 'Auth\[email protected]')->name('password.update');
    }

    // Email Verification Routes...
    if ($options['verify'] ?? false) {
        Route::get('email/verify', 'Auth\[email protected]')->name('verification.notice');
        Route::get('email/verify/{id}', 'Auth\[email protected]')->name('verification.verify');
        Route::get('email/resend', 'Auth\[email protected]')->name('verification.resend');
    }
});

register.blade.php

<form method="POST" action="{{ route('register') }}" enctype="multipart/form-data">

Please sign in or create an account to participate in this conversation.