{"id":14974582,"url":"https://github.com/nafiesl/mini-crm","last_synced_at":"2025-10-27T09:30:38.613Z","repository":{"id":80216814,"uuid":"126658710","full_name":"nafiesl/Mini-CRM","owner":"nafiesl","description":"Mini CRM project, a challenge from Laravel Daily blog post.","archived":false,"fork":false,"pushed_at":"2018-09-12T01:32:55.000Z","size":582,"stargazers_count":14,"open_issues_count":0,"forks_count":12,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-10T18:47:03.171Z","etag":null,"topics":["crud-sample","laravel","laravel55","tdd","testing"],"latest_commit_sha":null,"homepage":null,"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/nafiesl.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-03-25T02:44:58.000Z","updated_at":"2024-07-06T07:50:26.000Z","dependencies_parsed_at":null,"dependency_job_id":"4499be3d-758c-4d0c-9dd7-10edfad2b994","html_url":"https://github.com/nafiesl/Mini-CRM","commit_stats":{"total_commits":25,"total_committers":1,"mean_commits":25.0,"dds":0.0,"last_synced_commit":"15a03a2425ad42f78e00928adee24c9f795fbaa9"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nafiesl%2FMini-CRM","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nafiesl%2FMini-CRM/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nafiesl%2FMini-CRM/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nafiesl%2FMini-CRM/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nafiesl","download_url":"https://codeload.github.com/nafiesl/Mini-CRM/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238471968,"owners_count":19478138,"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":["crud-sample","laravel","laravel55","tdd","testing"],"created_at":"2024-09-24T13:50:46.313Z","updated_at":"2025-10-27T09:30:37.772Z","avatar_url":"https://github.com/nafiesl.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Mini-CRM\n\nThis project comes from Laravel Daily blog post, [How to Test Junior Laravel Developer Skills: Sample Project](http://laraveldaily.com/test-junior-laravel-developer-sample-project), a challenge (sample project) for junior laravel developer.\n\nThis project built with Laravel 5.5.\n\n## User Requirements\n\n* [x] Basic Laravel Auth: ability to log in as administrator\n* [x] Use database seeds to create first user with email admin@admin.com and password “password”\n* [x] CRUD functionality (Create / Read / Update / Delete) for two menu items: Companies and Employees.\n* [x] Companies DB table consists of these fields: Name (required), email, logo (minimum 100×100), website\n* [x] Employees DB table consists of these fields: First name (required), last name (required), Company (foreign key to Companies), email, phone\n* [x] Use database migrations to create those schemas above\n* [x] Store companies logos in storage/app/public folder and make them accessible from public\n* [x] Use basic Laravel resource controllers with default methods – index, create, store etc.\n* [x] Use Laravel’s validation function, using Request classes\n* [x] Use Laravel’s pagination for showing Companies/Employees list, 10 entries per page\n* [x] Use Laravel make:auth as default Bootstrap-based design theme, but remove ability to register\n\n### Extra Tasks\n\n* [ ] Use Datatables.net library to show table – with our without server-side rendering\n* [ ] Use more complicated front-end theme like AdminLTE\n* [ ] Email notification: send email whenever new company is entered (use Mailgun or Mailtrap)\n* [x] Make the project multi-language (using resources/lang folder)\n* [x] Basic testing with phpunit (I know some would argue it should be the basics, but I disagree)\n\n## How to Install\n\n1. Clone the repo : `git clone https://github.com/nafiesl/Mini-CRM.git`\n2. `$ cd Mini-CRM`\n3. `$ composer install`\n4. `$ cp .env.example .env`\n5. `$ php artisan key:generate`\n6. Create **database on MySQL** or **SQLite**\n7. **Set database credentials** on `.env` file\n8. `$ php artisan migrate --seed`\n9. `$ php artisan storage:link`\n10. `$ php artisan serve`\n11. Login with :\n    - email : `admin@admin.com`\n    - password : `password`\n\n#### Demo Records\n\nIf you want to some demo records, we can use **Laravel Tinker** and **Model Factories**.\n\n```bash\n\n$ php artisan tinker\n\u003e\u003e\u003e factory(App\\Company::class, 15)-\u003ecreate(['creator_id' =\u003e 1])-\u003eeach(function ($u) { $u-\u003eemployees()-\u003esaveMany(factory(App\\Employee::class, rand(5, 12))-\u003emake(['company_id' =\u003e $u-\u003eid])); });\n```\n\nThen we will get some filled records like screenshots below (except the company logo).\n\n## Screenshots\n\n#### Company List\n![Company List](public/screenshots/company-list.jpg)\n\n#### Company Detail\n![Company Detail](public/screenshots/company-detail.jpg)\n\n#### Employee List\n![Employee List](public/screenshots/employee-list.jpg)\n\n#### Test Suites\n![Test Suites](public/screenshots/test-suites.jpg)\n\n## License\n\nThis software is open-sourced software licensed under the [MIT license](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnafiesl%2Fmini-crm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnafiesl%2Fmini-crm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnafiesl%2Fmini-crm/lists"}