]> _ Git - fluidbook-toolbox.git/commitdiff
wip #3542 @0.5
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 1 Apr 2020 12:34:29 +0000 (14:34 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 1 Apr 2020 12:34:29 +0000 (14:34 +0200)
app/Console/Kernel.php
config/backpack/base.php
routes/backpack/custom.php
routes/web.php

index f456a545ab78520d559ac56eddf6960059ed6c2f..b790bc50aa735839830e2996cf7e74380f6f6324 100644 (file)
@@ -24,8 +24,8 @@ class Kernel extends ConsoleKernel
      */
     protected function schedule(Schedule $schedule)
     {
-        $schedule->command('backup:run')
-            ->dailyAt('04:00');
+        $schedule->command('backup:clean')->daily()->at('04:00');
+        $schedule->command('backup:run')->daily()->at('05:00');
     }
 
     /**
index 19e029b1ff3a7b64534ee0ad02af337adb6d1713..794de0c6e4f2774ac97205399811c2da4e5ceb5f 100644 (file)
@@ -180,7 +180,7 @@ return [
 
     // The prefix used in all base routes (the 'admin' in admin/dashboard)
     // You can make sure all your URLs use this prefix by using the backpack_url() helper instead of url()
-    'route_prefix' => 'admin',
+    'route_prefix' => '',
 
     // Set this to false if you would like to use your own AuthController and PasswordController
     // (you then need to setup your auth routes manually in your routes.php file)
index 3b72bfb73451068179f91340c31ce7f8cd905dd1..a956b0988150eeeb3d26acbce56c8bc2ec39ee51 100644 (file)
@@ -5,8 +5,8 @@ Route::group([
     'namespace'  => 'App\Http\Controllers\Admin',
 ], function () { // custom admin routes
      Route::crud('locale', 'LocaleCrudController');
-     Route::crud('page', 'PageCrudController');
-     Route::crud('quiz', 'QuizCrudController');
-     Route::crud('quiztranslation', 'QuiztranslationCrudController');
      Route::crud('settings', 'SettingsCrudController');
+     Route::crud('quiztranslation', 'QuiztranslationCrudController');
+     Route::crud('quiz', 'QuizCrudController');
+     Route::crud('page', 'PageCrudController');
 });
index b24ceec10bd557c1ccc7072e2a435cd78886669d..8671118329a50f2285633a1c788474b4aab3be2d 100644 (file)
@@ -1,4 +1,4 @@
 <?php
 
-Route::any('{page}/{subs?}',  'PageController@catchall')
-    ->where(['page' => '^(((?=(?!admin))(?=(?!\/)).))*$', 'subs' => '.*']);
+//Route::any('{page}/{subs?}',  'PageController@catchall')
+//    ->where(['page' => '^(((?=(?!admin))(?=(?!\/)).))*$', 'subs' => '.*']);