This application is a simple CRUD (Create, Read, Update, Delete) system built with Laravel. It demonstrates how to handle basic operations on a resource, including file uploads and deletions. The system is designed to be user-friendly and efficient, providing a clear example of how to implement CRUD functionality in a Laravel application.
- Create, Read, Update, Delete Operations: Manage resources with full CRUD functionality.
- File Upload and Delete: Efficiently handle file uploads and deletions.
- User-Friendly Interface: Easy-to-navigate and intuitive interface.
- Validation and Error Handling: Robust validation and error handling for forms.
- Alert Notifications: User-friendly alerts for actions performed.
- PHP: The programming language used for developing the application.
- Laravel: The PHP framework for building the application.
- MySQL: Relational database management system for storing data.
- Bootstrap: CSS framework for responsive design.
- JavaScript: For interactive elements and client-side validation.
To set up the project locally, follow these steps:
-
Clone the repository:
git clone https://github.com/your-username/laravel-crud-app.git cd laravel-crud-app
-
Install Dependencies:
composer install npm install
-
Environment Setup:
-
Copy the
.env.example
file to.env
:cp .env.example .env
-
Generate the application key:
php artisan key:generate
-
Update the
.env
file with your database credentials.
-
-
Run Migrations:
php artisan migrate
-
Run Seeders (if any):
php artisan db:seed
-
Run the Application:
php artisan serve
Your application will be available at
http://localhost:8000
.
- Manage Resources: Add, edit, or delete resources such as products, users, etc.
- File Handling: Upload and delete files associated with resources.
- Admin Panel: Use the admin panel to manage users and system settings.
- Alerts and Notifications: Receive notifications for CRUD operations.
The controllers handle the incoming HTTP requests, process the data, and return appropriate responses. The primary controller for this application is the CrudController
, which manages the CRUD operations for the resource.
The FileUploadTrait
provides methods for handling file uploads and deletions. It is used in the CrudController
to manage file operations associated with the resources.
Contributions are welcome! If you have suggestions or improvements, feel free to fork the repository and submit a pull request.
This project is licensed under the MIT License - see the LICENSE file for details.
For any inquiries or issues, please contact Mohamed Insath at [email protected].
Developed by Mohamed Insath