|
|
|
@ -6,7 +6,7 @@ if (config('php-sandbox.enable', false)) { |
|
|
|
|
'middleware' => config('php-sandbox.route_middleware'), ['web'] |
|
|
|
|
], function () { |
|
|
|
|
Route::get(config('php-sandbox.route', 'sandbox'), |
|
|
|
|
'\MightyPork\PhpSandbox\PhpSandboxController@index')->name('sandbox'); |
|
|
|
|
'\MightyPork\PhpSandbox\PhpSandboxController@index')->name('php-sandbox'); |
|
|
|
|
|
|
|
|
|
Route::post(config('php-sandbox.route', 'sandbox'), |
|
|
|
|
'\MightyPork\PhpSandbox\PhpSandboxController@run'); // ajax |
|
|
|
|