An open API service indexing awesome lists of open source software.

https://github.com/dunghenry/laravel_api

laravel + mysql
https://github.com/dunghenry/laravel_api

authentication laravel mysql

Last synced: 2 months ago
JSON representation

laravel + mysql

Awesome Lists containing this project

README

          

### API use Laravel + MySQL

#### Create controller

```js
php artisan make:controller CustomerController --resource
```

#### Create collection resource

```js
php artisan make:resource CustomerCollection --collection
```

#### Create resource

```js
php artisan make:resource CustomerResource
```

### Route

```js
php artisan route:list
```

### Create Post

```js
php artisan make:model Post -mcr
```

### Create CategoryPost

```js
php artisan make:model CategoryPost -mcr
```

### ADD SCSS

```js
npx mix watch
```

```js
npm install sass-loader@^12.1.0 sass resolve-url-loader@^5.0.0 laravel-mix --save-dev
```