mirror of
https://github.com/Aviortheking/CA_LARAVEL.git
synced 2025-04-22 19:02:11 +00:00
28 lines
921 B
PHP
Executable File
28 lines
921 B
PHP
Executable File
<?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('home');
|
|
});
|
|
|
|
Route::get('contact-us', 'ContactUSController@contactUS');
|
|
Route::post('contact-us', ['as' => 'contactus.store', 'uses' => 'ContactUSController@contactUSPost']);
|
|
|
|
Auth::routes();
|
|
|
|
Route::get('/home', 'HomeController@index')->name('home');
|
|
Route::get('admin/home', 'HomeController@adminHome')->name('admin.home')->middleware('is_admin');
|
|
Route::get('/blog', 'HomeController@blog')->name('blog');
|
|
Route::get('/blog/detail/{id}', 'HomeController@detail')->name('detail');
|
|
|