Utility for running PHP code inside the browser (Laravel package)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

14 lines
454 B

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