123456789101112131415161718192021222324252627282930 |
- <?php
- use Illuminate\Support\Facades\Route;
- /*
- |--------------------------------------------------------------------------
- | 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!
- |
- */
- /*
- * if no pro performer, then redirect to /login
- * [Cell Number] [Password] field -> proLogInWithPassword -> /pro/dashboard
- * -> they are authenticated in... see the home dashboard... logout button to -> /login
- */
- Route::get('login', 'LoginController@showLoginForm')->name('login');
- Route::post('login', 'LoginController@login');
- Route::post('logout', 'LoginController@logout')->name('logout');
- Route::middleware('pro.auth')->group(function () {
- Route::get('/', 'HomeController@showIndex')->name('home');
- });
|