[WIP] config Datatables/Webpack/Yajra

This commit is contained in:
Ludovic CANDELLIER
2020-04-12 04:09:36 +02:00
parent cd9b6ea74c
commit 134e04d197
49 changed files with 1204 additions and 670 deletions

View 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');
});

View 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');
});

View 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');
});

View 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
View File

@@ -0,0 +1,5 @@
<?php
Route::middleware('auth')->prefix('Admin')->namespace('Admin')->name('Admin.')->group(function () {
Route::get('', 'HomeController@index')->name('home');
});

View File

@@ -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');
});

View File

@@ -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');
});

View File

@@ -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');