Skip to content
This repository has been archived by the owner on Sep 29, 2022. It is now read-only.

santosoide/crud-using-repository-laravel-5-3

Repository files navigation

CRUD Laravel 5.3 dengan Repository Pattern

An example of a basic implementation of the Repository Pattern in Laravel 5.3

Quick Start Guide

Instalation

1. Clone this repo:

git clone https://github.com/cyberid41/crud-using-repository-laravel-5-3.git

2. Install the dependencies:

composer install

**3. Setup database config .env **

...

DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=contact
DB_USERNAME=your-mysql-username
DB_PASSWORD=your-mysql-password

...

4. Running Database Migration

php artisan migrate

5. Running Database Seeder

php artisan db:migrate

6. Running Development Server

php serve

Please open the following url localhost:8000

7. See the api documentation

// install deps using npm

npm install -g apidoc http-server

...

// run generate api documentation
apidoc -i app/Http/Controllers/ -o apidoc/

...

cd apidoc

http-server

Please open the following url localhost:8080

About

CRUD using Repository Pattern on Laravel 5.3

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published