HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
File: D:/HostingSpaces/SBogers96/smilefotografie.nl/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('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();
});