php artisan route - PHP Online

Form of PHP Sandbox

Enter Your PHP code here for testing/debugging in the Online PHP Sandbox. As in the usual PHP files, you can also add HTML, but do not forget to add the tag <?php in the places where the PHP script should be executed.



Your result can be seen below.

Result of php executing





Full code of php artisan route.php

  1. Route::prefix('role-and-permission')->group(function () {
  2.     Route::resource('roles', [RolesController::class])
  3.         ->except(['create', 'show']);
  4.  
  5.     Route::resource('permissions', [PermissionController::class])
  6.         ->except(['create', 'show']);
  7. });
File Description
  • php artisan route
  • PHP Code
  • 06 Jul-2021
  • 259 Bytes
You can Share it: