Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?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 redirect('/home');
- });
- Route::get('/keluar',function(){
- \Auth::logout();
- return redirect('/login');
- });
- Route::group(['middleware'=>'auth'],function(){
- Route::get('/supplier','Supplier_controller@index');
- Route::get('/supplier/add','Supplier_controller@add');
- Route::post('/supplier/add','Supplier_controller@store');
- Route::get('/supplier/{id}','Supplier_controller@edit');
- Route::put('/supplier/{id}','Supplier_controller@update');
- Route::delete('/supplier/{id}','Supplier_controller@delete');
- });
- Auth::routes();
- Route::get('/home', 'HomeController@index')->name('home');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement