%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/html/digiprint/routes/
Upload File :
Create Path :
Current File : /var/www/html/digiprint/routes/web.php

<?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('/', 'FrontEndController@HomePage')->name('home');
Route::get('/technology', 'FrontEndController@ShowAllTechnologies');
Route::get('/contact-us', function () {
    return view('contact-us', ['msg' => '', 'msgSuccess' => '']);
});
Route::get('/order-now', function () {
    return view('order-now', ['msg' => '', 'msgSuccess' => '']);
});
Route::post('/sendmail', 'ContactController@SendMail');
Route::post('/order-now', 'ContactController@OrderNow');
Route::get('/category/{slug}','FrontEndController@GetCategories');
Route::get('/category/{parentSlug}/{slug}','FrontEndController@GetCategoryDetails');

Route::group(['prefix' => 'dashboard'], function () {
    Auth::routes();
    Route::get('/', function () {
        if (\Auth::guest()) {
            return view('auth.login');
        }
        return redirect(route('dashboard.categories'));
    });

    Route::get('/categories', 'CategoriesController@index')->name('dashboard.categories');
    Route::get('/categories/{id}', 'CategoriesController@show')->name('dashboard.categories.details');
    Route::post('/categories/{id}', 'CategoriesController@createOrUpdate')->name('dashboard.categories.createOrUpdate');
    Route::get('/categories/{id}/gallery', 'CategoriesController@gallery')->name('dashboard.categories.gallery');
    Route::post('/categories/{id}/gallery', 'CategoriesController@uploadGallery')->name('dashboard.categories.gallery.upload');
    Route::get('/categories/{id}/gallery/{galleryId}/delete', 'CategoriesController@deleteGallery')->name('dashboard.categories.gallery.delete');

    Route::get('/technologies', 'TechnologiesController@index')->name('dashboard.technologies');
    Route::get('/technologies/{id}', 'TechnologiesController@show')->name('dashboard.technologies.details');
    Route::post('/technologies/{id}', 'TechnologiesController@createOrUpdate')->name('dashboard.technologies.createOrUpdate');
    Route::get('/technologies/{id}/gallery', 'TechnologiesController@gallery')->name('dashboard.technologies.gallery');
    Route::post('/technologies/{id}/gallery', 'TechnologiesController@uploadGallery')->name('dashboard.technologies.gallery.upload');
    Route::get('/technologies/{id}/gallery/{galleryId}/delete', 'TechnologiesController@deleteGallery')->name('dashboard.technologies.gallery.delete');
});


Zerion Mini Shell 1.0