R
R
RoffDaniel2020-08-13 13:50:24
Laravel
RoffDaniel, 2020-08-13 13:50:24

How to change routes and database columns in authorization module?

Good day to all! I recently started working with Laravel, namely with Laravel 7.x. While I understand the framework, I simultaneously develop a project on it, a project that I initially write on a self-written, so to speak, core similar to Laravel. Now the question arose about authorization, registration and recovery. Please tell me in which classes I need to change the database columns, routes and the rest that is needed? I’m literally doing this right now, and while I’m doing it, I began to doubt that it would work.

Now the file with my routes looks like this:

Auth::routes();

Route::domain(config('app.server_host'))->group(function () {
    Route::get('/', '[email protected]')->name('main-index');
    Route::get('/faq', '[email protected]')->name('main-faq');
    Route::get('/rules', '[email protected]')->name('main-rules');
    Route::get('/rules/game', '[email protected]')->name('main-rules-game');
    Route::get('/rules/network', '[email protected]')->name('main-rules-network');
    Route::get('/rules/terms', '[email protected]')->name('main-rules-terms');
    Route::get('/rules/privacy', '[email protected]')->name('main-rules-privacy');
    Route::get('/phpinfo', function () {
        return phpinfo();
    });
});
Route::domain('xid.' . config('app.server_host'))->group(function () {
    Route::get('/', '[email protected]')->name('xid-index');
    Route::get('/register', 'Auth/[email protected]')->name('xid-create');
    Route::get('/login', 'Auth/[email protected]')->name('xid-login');
    Route::get('/login/recovery', 'Auth/[email protected]')->name('xid-login-recovery');
    Route::get('/phpinfo', function () {
        return phpinfo();
    });
});


Everything else I edited in /vedor/laravel/ui/auth-backend/*. But is it correct?...

Thank you in advance!

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question