[WIP] config Datatables/Webpack/Yajra
This commit is contained in:
12
routes/Admin/Shop/Families.php
Normal file
12
routes/Admin/Shop/Families.php
Normal file
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
|
||||
Route::prefix('Families')->name('Families.')->group(function () {
|
||||
Route::get('', 'FamilyController@index')->name('index');
|
||||
Route::get('create', 'FamilyController@create')->name('create');
|
||||
Route::delete('destroy', 'FamilyController@destroy')->name('destroy');
|
||||
Route::post('update', 'FamilyController@update')->name('update');
|
||||
Route::post('store', 'FamilyController@store')->name('store');
|
||||
Route::get('edit/{id}', 'FamilyController@edit')->name('edit');
|
||||
|
||||
});
|
||||
|
||||
12
routes/Admin/Shop/Genres.php
Normal file
12
routes/Admin/Shop/Genres.php
Normal file
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
|
||||
Route::prefix('Genres')->name('Genres.')->group(function () {
|
||||
Route::get('', 'GenreController@index')->name('index');
|
||||
Route::get('create', 'GenreController@create')->name('create');
|
||||
Route::delete('destroy', 'GenreController@destroy')->name('destroy');
|
||||
Route::post('update', 'GenreController@update')->name('update');
|
||||
Route::post('store', 'GenreController@store')->name('store');
|
||||
Route::get('edit/{id}', 'GenreController@edit')->name('edit');
|
||||
|
||||
});
|
||||
|
||||
12
routes/Admin/Shop/Species.php
Normal file
12
routes/Admin/Shop/Species.php
Normal file
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
|
||||
Route::prefix('Species')->name('Species.')->group(function () {
|
||||
Route::get('', 'SpecieController@index')->name('index');
|
||||
Route::get('create', 'SpecieController@create')->name('create');
|
||||
Route::delete('destroy', 'SpecieController@destroy')->name('destroy');
|
||||
Route::post('update', 'SpecieController@update')->name('update');
|
||||
Route::post('store', 'SpecieController@store')->name('store');
|
||||
Route::get('edit/{id}', 'SpecieController@edit')->name('edit');
|
||||
|
||||
});
|
||||
|
||||
5
routes/Admin/Shop/route.php
Normal file
5
routes/Admin/Shop/route.php
Normal file
@@ -0,0 +1,5 @@
|
||||
<?php
|
||||
|
||||
include( __DIR__ . '/Families.php');
|
||||
include( __DIR__ . '/Genres.php');
|
||||
include( __DIR__ . '/Species.php');
|
||||
5
routes/Admin/route.php
Normal file
5
routes/Admin/route.php
Normal file
@@ -0,0 +1,5 @@
|
||||
<?php
|
||||
|
||||
Route::middleware('auth')->prefix('Admin')->namespace('Admin')->name('Admin.')->group(function () {
|
||||
Route::get('', 'HomeController@index')->name('home');
|
||||
});
|
||||
@@ -13,4 +13,7 @@ Route::middleware('auth')->prefix('Admin')->namespace('Admin')->name('Admin.')->
|
||||
include( __DIR__ . '/ProductPrices.php');
|
||||
include( __DIR__ . '/Products.php');
|
||||
include( __DIR__ . '/Sections.php');
|
||||
|
||||
include( __DIR__ . '/../../Admin/Shop/route.php');
|
||||
|
||||
});
|
||||
|
||||
@@ -6,5 +6,6 @@ Route::prefix('Shop')->namespace('Shop')->name('Shop.')->group(function () {
|
||||
include( __DIR__ . '/Orders.php');
|
||||
include( __DIR__ . '/Products.php');
|
||||
include( __DIR__ . '/Sections.php');
|
||||
include( __DIR__ . '/admin/route.php');
|
||||
|
||||
include( __DIR__ . '/Admin/route.php');
|
||||
});
|
||||
|
||||
@@ -17,8 +17,8 @@ Route::get('', 'Shop\HomeController@index')->name('welcome');
|
||||
Route::get('home', 'Shop\HomeController@index')->name('home');
|
||||
|
||||
// include( __DIR__ . '/boilerplate/route.php');
|
||||
// include( __DIR__ . '/admin/route.php');
|
||||
include( __DIR__ . '/shop/route.php');
|
||||
include( __DIR__ . '/Admin/route.php');
|
||||
include( __DIR__ . '/Shop/route.php');
|
||||
|
||||
|
||||
Route::get('cache', 'JS\CacheController@getCacheVersions')->name('cacheVersions');
|
||||
|
||||
Reference in New Issue
Block a user