Laravel environment with multi login

0

I have a personal project that I would like to make available to some companies, but each company must have its own login, so the login screen should have the following address: www.projeto.com.br/empresa/login .

That is, what I want is that in the same project, with the same code, I have a login that takes into consideration the address entered to choose in which company the user is logging in. Is it possible to do that? If so, how would I resolve the routes?

I'm working with Laravel 5.4 , but since it's still in the definition phase, it does not have any code done, the version here is the least important.

    
asked by anonymous 04.08.2017 / 21:25

1 answer

0
Route::group(array('prefix' => 'empresaTal', 'middleware' => 'auth'), function() { 

Route::get('login', array('as' => 'login.empresaTal', 'dashboard\AuthEmpresaTal@login'));

});

I think that's what you need. Create route groups

    
05.08.2017 / 02:04