Skip to content

Instantly share code, notes, and snippets.

@mostafa6765
Created October 7, 2018 20:31
Show Gist options
  • Save mostafa6765/5f8fb85afc75061266a8390de39f92bd to your computer and use it in GitHub Desktop.
Save mostafa6765/5f8fb85afc75061266a8390de39f92bd to your computer and use it in GitHub Desktop.
<?php
/*
|--------------------------------------------------------------------------
| 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('/', function () {
return view('welcome');
});
Route::get('url', 'KamalController@index')->name('url');
Auth::routes();
Route::get('/home', 'HomeController@index')->name('home');
Route::prefix('admin')->group(function () {
Route::get('/', 'AdminController@index')->name('admin.dashboard');
Route::get('dashboard', 'AdminController@index')->name('admin.dashboard');
Route::get('register', 'AdminController@create')->name('admin.register');
Route::post('register', 'AdminController@store')->name('admin.register.store');
Route::get('login', 'Auth\Admin\LoginController@login')->name('admin.auth.login');
Route::post('login', 'Auth\Admin\LoginController@loginAdmin')->name('admin.auth.loginAdmin');
Route::post('logout', 'Auth\Admin\LoginController@logout')->name('admin.auth.logout');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment