{"id":19514276,"url":"https://github.com/nejcc/laravelscope-docs","last_synced_at":"2026-02-08T12:37:13.816Z","repository":{"id":150645356,"uuid":"402869767","full_name":"Nejcc/laravelscope-docs","owner":"Nejcc","description":null,"archived":false,"fork":false,"pushed_at":"2021-09-03T18:58:18.000Z","size":2,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-07T02:40:57.669Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Nejcc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-09-03T18:51:08.000Z","updated_at":"2021-09-03T19:00:45.000Z","dependencies_parsed_at":"2023-05-13T06:00:40.238Z","dependency_job_id":null,"html_url":"https://github.com/Nejcc/laravelscope-docs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Nejcc/laravelscope-docs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nejcc%2Flaravelscope-docs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nejcc%2Flaravelscope-docs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nejcc%2Flaravelscope-docs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nejcc%2Flaravelscope-docs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Nejcc","download_url":"https://codeload.github.com/Nejcc/laravelscope-docs/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nejcc%2Flaravelscope-docs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29230376,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-08T12:28:20.184Z","status":"ssl_error","status_checked_at":"2026-02-08T12:28:19.510Z","response_time":57,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-10T23:35:44.795Z","updated_at":"2026-02-08T12:37:13.802Z","avatar_url":"https://github.com/Nejcc.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Create new Admin route\nInside routes folder make new Admin.php rout file\n\n#### RouteServiceProvider\n[https://laravel.com/docs/8.x/routing](Laravel documentation 8.x)\n\n```php\npublic function boot()\n{\n    $this-\u003econfigureRateLimiting();\n\n    $this-\u003eroutes(function () {\n        Route::prefix('api')\n            -\u003emiddleware('api')\n            -\u003enamespace($this-\u003enamespace)\n            -\u003egroup(base_path('routes/api.php'));\n\n        Route::middleware('web')\n            -\u003enamespace($this-\u003enamespace)\n            -\u003egroup(base_path('routes/web.php'));\n\n        \u003cspan class='green'\u003e//Adding new custom route here\u003c/span\u003e\n\n    });\n}\n```\n\n#### Append new route group\n\n##### Simple route\n```php\n//Adding new custom route\nRoute::middleware(['web', 'auth'])\n-\u003enamespace($this-\u003enamespace)\n-\u003eprefix('admin')\n-\u003ename('admin.')\n-\u003egroup(base_path('routes/admin.php'));\n```\n\n\n##### Advanced route with Roles\n```php\nRoute::middleware(['web', 'auth', 'role:admin|super-admin'])\n-\u003enamespace($this-\u003enamespace)\n-\u003eprefix('admin')\n-\u003ename('admin.')\n-\u003egroup(base_path('routes/admin.php'));\n```\n\n##### Create new Admin route\n```\ntouch routes/Admin.php\n```\n\n##### Create your first index route name\nCreate new controller\n``` \nphp artisan make:controller Admin/DashboardController \n```\n\n##### Add new route to Admin route\n```php\nRoute::get('/', [App\\Http\\Controllers\\Admin\\DashboardController::class, 'index'])-\u003ename('dashboard'); \n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnejcc%2Flaravelscope-docs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnejcc%2Flaravelscope-docs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnejcc%2Flaravelscope-docs/lists"}