Create: Add new products with name, quantity, price, and description. Read: View a list of all products with their details. Update: Modify existing product details. Delete: Remove products from the database.
- PHP (>= 7.3)
- Composer
- Laravel (>= 8.x)
- Database (MySQL, PostgreSQL, SQLite, SQL Server, etc.)
-
Clone the repository:
git clone https://github.com/your-username/your-repository.git
-
Navigate to the project directory:
cd your-repository
-
Install dependencies via Composer:
composer install
-
Copy the
.env.example
file and rename it to.env
. Update the database configuration in the.env
file. -
Generate an application key:
php artisan key:generate
-
Run database migrations:
php artisan migrate
-
Serve the application:
php artisan serve
-
Open your browser and navigate to
http://127.0.0.1:8000
to access the application.
- Create a new product: Click on the "Create a Product" link on the home page and fill in the product details.
- View all products: Visit the home page to see a list of all products.
- Edit a product: Click on the "Edit" link next to a product on the home page to modify its details.
- Delete a product: Click on the "Delete" button next to a product on the home page to remove it from the database.
Contributions are welcome! Please feel free to submit a pull request or open an issue if you encounter any problems or have suggestions for improvement.
This project is licensed under the MIT License.