File: D:/HostingSpaces/SBogers10/ijzerenman.komma.pro/app/commands.php
<?php
/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the Closure to execute when that URI is requested.
|
*/
use Symfony\Component\Console\Output\BufferedOutput;
/*
Route::get('migrateShop', function()
{
$output = new BufferedOutput;
Artisan::call('dump-autoload', [], $output);
Artisan::call('migrate:refresh', ['--force' => true], $output);
Artisan::call('migrate', [
'--bench' => 'komma/kms',
'--force' => true
], $output);
Artisan::call('db:seed', [
'--class' => 'ShopSeeder',
'--force' => true
], $output);
return "Output: " . $output->fetch();
});*/
Route::get('migrate', function()
{
$output = new BufferedOutput;
Artisan::call('migrate', [
'--force' => true
], $output);
return "Output: " . $output->fetch();
});
Route::get('roll-back', function()
{
$output = new BufferedOutput;
Artisan::call('migrate:rollback', [
'--force' => true
], $output);
return "Output: " . $output->fetch();
});
Route::get('dump-autoload', function()
{
$output = new BufferedOutput;
// Artisan::call('cache:clear', [], $output);
Artisan::call('dump-autoload', [], $output);
return "Output: " . $output->fetch();
});
Route::get('clear-cache', function()
{
$output = new BufferedOutput;
Artisan::call('cache:clear', [], $output);
Artisan::call('dump-autoload', [], $output);
return "Output: " . $output->fetch();
});
Route::get('multiauth-reminders-table', function(){
$output = new BufferedOutput;
Artisan::call('multiauth:reminders-table', [], $output);
return "Output: " . $output->fetch();
});
Route::get('test-cron', function()
{
$output = new BufferedOutput;
Artisan::call('cron:tops', [], $output);
return "Output: " . $output->fetch();
});
Route::get('updateSearchIndex', 'Komma\Kms\Core\SearchIndex\SearchIndexController@reindexAll');