{"id":23496329,"url":"https://github.com/onemoredavid/laravel-crud-example","last_synced_at":"2025-04-22T12:13:42.322Z","repository":{"id":258764498,"uuid":"875658175","full_name":"OneMoreDavid/laravel-crud-example","owner":"OneMoreDavid","description":"an example CRUD application for a future blog post. ","archived":false,"fork":false,"pushed_at":"2024-10-21T10:37:27.000Z","size":75,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-02-16T14:29:38.155Z","etag":null,"topics":[],"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/OneMoreDavid.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":"2024-10-20T15:03:02.000Z","updated_at":"2024-10-21T10:37:31.000Z","dependencies_parsed_at":"2024-10-20T17:47:27.857Z","dependency_job_id":null,"html_url":"https://github.com/OneMoreDavid/laravel-crud-example","commit_stats":null,"previous_names":["onemoredavid/laravel-crud-example"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OneMoreDavid%2Flaravel-crud-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OneMoreDavid%2Flaravel-crud-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OneMoreDavid%2Flaravel-crud-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OneMoreDavid%2Flaravel-crud-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/OneMoreDavid","download_url":"https://codeload.github.com/OneMoreDavid/laravel-crud-example/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250237834,"owners_count":21397401,"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":[],"created_at":"2024-12-25T04:12:27.715Z","updated_at":"2025-04-22T12:13:42.304Z","avatar_url":"https://github.com/OneMoreDavid.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Laravel CRUD Example\n\nThis repository is a simple example of how to build a basic CRUD (Create, Read, Update, Delete) application using **Laravel 11**. It complements the blog post on **CRUD operations in Laravel**, which will be published on **18th November 2024**.\n\nCheck out the detailed blog post here:\n[onemoredavid.com/blog/2024-11-18-laravel-crud/](https://onemoredavid.com/blog/2024-11-18-laravel-crud/)\n\n## About\n\nThis project demonstrates the basic functionality required to manage a resource—in this case, **posts** — through a typical CRUD interface. It includes the ability to:\n\n- Create new posts\n- List all posts\n- View individual posts\n- Edit existing posts\n- Delete posts\n\n## Features\n\n- **Laravel 11** for modern PHP application development.\n- Uses **Eloquent ORM** to interact with the database.\n- Follows RESTful routing conventions with a **resource controller**.\n- Example of mass assignment protection using `$fillable`.\n\n## Installation\n\nTo run this project locally, follow these steps:\n\n1. Clone the repository:\n\n```bash\ngit clone https://github.com/your-username/laravel-crud-example.git\ncd laravel-crud-example\n```\n\n2. Install dependencies using Composer:\n\n```bash\ncomposer install\n```\n\n3. Copy the `.env.example` file to `.env` and update the database configuration:\n\n```bash\ncp .env.example .env\n```\n\n4. Generate the application key:\n\n```bash\nphp artisan key:generate\n```\n\n5. Run the migrations to set up the database:\n\n```bash\nphp artisan migrate\n```\n\n6. Serve the application locally:\n\n```bash\nphp artisan serve\n```\n\nNow, you can visit `http://localhost:8000/posts` to see the CRUD application in action (or use Laravel Herd, as I do)!\n\n## Usage\n\nOnce the project is running, you can perform the following operations:\n\n- **Create a Post**: Click on \"Create Post\" and fill out the form to add a new post.\n- **View Posts**: The home page displays all posts. Click on any post to view its details.\n- **Edit a Post**: On the post's detail page, click \"Edit\" to modify the post.\n- **Delete a Post**: Use the delete button to remove a post from the database.\n\n## Further Reading\n\nFor more information on how CRUD works and its role in web applications, check out the supporting blog post:\n[What is CRUD? A Simple Guide with Laravel](https://onemoredavid.com/blog/2024-11-18-laravel-crud/)\n\n## License\n\nThis project is open-sourced under the [MIT license](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fonemoredavid%2Flaravel-crud-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fonemoredavid%2Flaravel-crud-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fonemoredavid%2Flaravel-crud-example/lists"}