Structured Laravel application using Repository Pattern V1.0.0
Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experience to be truly fulfilling. Laravel takes the pain out of development by easing common tasks used in many web projects, such as:
- Simple, fast routing engine.
- Powerful dependency injection container.
- Multiple back-ends for session and cache storage.
- Expressive, intuitive database ORM.
- Database agnostic schema migrations.
- Robust background job processing.
- Real-time event broadcasting.
Laravel is accessible, powerful, and provides tools required for large, robust applications.
- Clone this repository:
git clone https://gitlab.com/laravel-web-application/laravel-api-repository-pattern.git
- Go inside the folder:
cd laravel-api-repository-pattern
- Run
cp .env.example .env
then put your DB name & credentials - Run
composer install
- Run
php artisan key:generate
- Run
php artisan migrate
- Run
php artisan serve
- Open your favorite REST API Client such as POSTMAN or Insomnia
- Import POSTMAN Collection into your POSTMAN App.
Add New User
List All Users
Find User By ID
Update User By ID
Delete User By ID
Error Message