{"id":15190155,"url":"https://github.com/eklundkristoffer/administer","last_synced_at":"2026-03-05T10:02:39.529Z","repository":{"id":56976104,"uuid":"81954931","full_name":"eklundkristoffer/administer","owner":"eklundkristoffer","description":null,"archived":false,"fork":false,"pushed_at":"2017-02-23T14:15:41.000Z","size":315,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-11T20:23:18.097Z","etag":null,"topics":["adminpanel","laravel","laravel-package","laravel54"],"latest_commit_sha":null,"homepage":null,"language":"CSS","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/eklundkristoffer.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}},"created_at":"2017-02-14T14:43:08.000Z","updated_at":"2020-01-23T13:30:44.000Z","dependencies_parsed_at":"2022-08-21T11:50:56.211Z","dependency_job_id":null,"html_url":"https://github.com/eklundkristoffer/administer","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/eklundkristoffer/administer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eklundkristoffer%2Fadminister","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eklundkristoffer%2Fadminister/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eklundkristoffer%2Fadminister/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eklundkristoffer%2Fadminister/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eklundkristoffer","download_url":"https://codeload.github.com/eklundkristoffer/administer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eklundkristoffer%2Fadminister/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30118932,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-05T09:35:22.236Z","status":"ssl_error","status_checked_at":"2026-03-05T09:35:20.028Z","response_time":93,"last_error":"SSL_read: 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":["adminpanel","laravel","laravel-package","laravel54"],"created_at":"2024-09-27T20:05:11.164Z","updated_at":"2026-03-05T10:02:39.485Z","avatar_url":"https://github.com/eklundkristoffer.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"### Table of contents\n\n* [Installation](#installation)\u003c/br\u003e\n* [Users](#users)\n    * [Limits](#limits)\n    * [User Model](#user-model)\n    * [Authentication](#authentication)\n* [Models](#models)\n    * [Editable Models](#editable-models)\n* [Commands](#commands)\n    * [Add User Role](#add-user-role)\n    * [Delete User Role](#delete-user-role)\n\n###Installation \n\nrequire the project using Composer:\n```\ncomposer require eklundkristoffer/administer\n```\n\nor manually update your require block and run `composer update`\n```\n{\n    \"require\": {\n        \"eklundkristoffer/administer\": \"~0.1\"\n    }\n}\n```\n\n### Users\n\n##### Limits\n* Only eloquent driver is supported.\n* Multiple guards is not supported.\n\n##### User model\n\nYour user model should also be extending Administers own user model:\n\n```php\nnamespace App\\User;\n\nuse Administer\\Models\\User as Administer;\n\nclass User extends Administer\n{\n    //\n}\n```\n\n#### Authentication\nIf you want a administer to login using email for example, you will have to update `$username` property in your user model. Administer is using `username` and `password` fields on default.\n\n```php\nnamespace App\\User;\n\nuse Administer\\Models\\User as Administer;\n\nclass User extends Administer\n{\n    /**\n    * Field to be used as username during authentication.\n    *\n    * @var string\n    */\n   protected $username = 'username';\n\n   /**\n    * Field to be used as password during authentication.\n    *\n    * @var string\n    */\n   protected $password = 'password';\n}\n```\n\n### Models\n\n##### Editable Models\n\nBy adding a model to the `models` array in `config/administer.php` Administer will then automatically let you edit the model records from the web. You can with ease define which fields that can be edited, and which fields that should be shown in the presentation list. \n\n```php\n'models' =\u003e [\n    App\\User::class =\u003e [\n        'present_fields' =\u003e ['username', 'email'],\n        'editable_fields' =\u003e ['username', 'email']\n    ]\n],\n```\n\n### Commands\n\n##### Add User Role\n```\nphp artisan administer:user:addrole {user_id} {roles*}\n```\n##### Delete User Role\n```\nphp artisan administer:user:deleterole {user_id} {roles*}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feklundkristoffer%2Fadminister","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feklundkristoffer%2Fadminister","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feklundkristoffer%2Fadminister/lists"}