{"id":13560161,"url":"https://github.com/sohelamin/laravel-admin","last_synced_at":"2025-05-15T07:02:58.751Z","repository":{"id":53831181,"uuid":"54707792","full_name":"sohelamin/laravel-admin","owner":"sohelamin","description":"Laravel Admin Panel","archived":false,"fork":false,"pushed_at":"2023-01-31T13:34:43.000Z","size":155,"stargazers_count":721,"open_issues_count":9,"forks_count":264,"subscribers_count":55,"default_branch":"master","last_synced_at":"2024-04-14T11:08:33.335Z","etag":null,"topics":["laravel","laravel-admin","laravel-admin-panel","php"],"latest_commit_sha":null,"homepage":"https://packagist.org/packages/appzcoder/laravel-admin","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sohelamin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-03-25T09:06:16.000Z","updated_at":"2024-04-09T09:16:20.000Z","dependencies_parsed_at":"2023-02-16T19:45:38.205Z","dependency_job_id":null,"html_url":"https://github.com/sohelamin/laravel-admin","commit_stats":null,"previous_names":[],"tags_count":18,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sohelamin%2Flaravel-admin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sohelamin%2Flaravel-admin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sohelamin%2Flaravel-admin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sohelamin%2Flaravel-admin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sohelamin","download_url":"https://codeload.github.com/sohelamin/laravel-admin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248852120,"owners_count":21171839,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["laravel","laravel-admin","laravel-admin-panel","php"],"created_at":"2024-08-01T13:00:38.569Z","updated_at":"2025-04-14T08:57:11.195Z","avatar_url":"https://github.com/sohelamin.png","language":"PHP","funding_links":[],"categories":["Uncategorized"],"sub_categories":["Uncategorized"],"readme":"# Laravel Admin Panel\nAn admin panel for managing users, roles, permissions \u0026 crud.\n\n### Requirements\n    Laravel \u003e=5.5\n    PHP \u003e= 7.0\n\n## Features\n- User, Role \u0026 Permission Manager\n- CRUD Generator\n- Activity Log\n- Page CRUD\n- Settings\n\n## Installation\n\n1. Run\n    ```\n    composer require appzcoder/laravel-admin\n    ```\n\n2. Install the admin package.\n    ```\n    php artisan laravel-admin:install\n    ```\n    \u003e Service provider will be discovered automatically.\n3. Make sure your user model's has a ```HasRoles``` trait **app/Models/User.php**.\n    ```php\n    class User extends Authenticatable\n    {\n        use Notifiable, HasRoles;\n\n        ...\n    ```\n\n4. You can generate CRUD easily through generator tool now.\n\nNote: If you are using Laravel 7+ then scaffold the authentication with bootstrap for a better experience.\n\n\n## Usage\n\n1. Create some permissions.\n\n2. Create some roles.\n\n3. Assign permission(s) to role.\n\n4. Create user(s) with role.\n\n5. For checking authenticated user's role see below:\n    ```php\n    // Add role middleware in app/Http/Kernel.php\n    protected $routeMiddleware = [\n        ...\n        'role' =\u003e \\App\\Http\\Middleware\\CheckRole::class,\n    ];\n    ```\n\n    ```php\n    // Check role anywhere\n    if (Auth::check() \u0026\u0026 Auth::user()-\u003ehasRole('admin')) {\n        // Do admin stuff here\n    } else {\n        // Do nothing\n    }\n\n    // Check role in route middleware\n    Route::group(['namespace' =\u003e 'Admin', 'prefix' =\u003e 'admin', 'middleware' =\u003e ['auth', 'role:admin']], function () {\n       Route::get('/', ['uses' =\u003e 'AdminController@index']);\n    });\n\n    // Check permission in route middleware\n    Route::group(['namespace' =\u003e 'Admin', 'prefix' =\u003e 'admin', 'middleware' =\u003e ['auth', 'can:write_user']], function () {\n       Route::get('/', ['uses' =\u003e 'AdminController@index']);\n    });\n    ```\n\n6. For checking permissions see below:\n\n    ```php\n    if ($user-\u003ecan('permission-name')) {\n        // Do something\n    }\n    ```\n\nLearn more about ACL from [here](https://laravel.com/docs/master/authorization)\n\nFor activity log please read `spatie/laravel-activitylog` [docs](https://docs.spatie.be/laravel-activitylog/v2/introduction)\n\n## Screenshots\n\n![users](https://user-images.githubusercontent.com/1708683/43477093-1ac08d42-951c-11e8-8217-00aedc19b28d.png)\n\n![activity log](https://user-images.githubusercontent.com/1708683/43477154-426d849e-951c-11e8-8682-ac1950114a5a.png)\n\n![generator](https://user-images.githubusercontent.com/1708683/43477174-5381d15e-951c-11e8-9f86-2e45acd38f08.png)\n\n![settings](https://user-images.githubusercontent.com/1708683/43679408-67b724d0-9846-11e8-8eb0-49e04c449ee3.png)\n\n## Author\n\n[Sohel Amin](http://www.sohelamin.com) :email: [Email Me](mailto:sohelamincse@gmail.com)\n\n## License\n\nThis project is licensed under the MIT License - see the [License File](LICENSE) for details\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsohelamin%2Flaravel-admin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsohelamin%2Flaravel-admin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsohelamin%2Flaravel-admin/lists"}