No description, website, or topics provided.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app
bootstrap
config
database
public
resources
routes
storage
tests
.env.example
.gitattributes
.gitignore
artisan
composer.json
composer.lock
package.json
phpunit.xml
readme.md
server.php
webpack.mix.js

readme.md

Laravel REST API

All the setup necessary for creating restful api end points in laravel.

Installation

You can download this zip then make following setup.

Inside project root directory, run following command.

composer update

Now, create .env file and setup the database configuration. Then, clear the configuration cache run the migration command.

php artisan config:cache

php artisan migrate

This includes following.

  • Article Store API
  • Article Update API

List of files created for this project

Model

  • app\Article.php

Routes

  • routes\api.php

Controller

  • ApiController
  • ArticleController

Request

  • app\Http\Requests\ArticleRequest

migration

  • database\migration\2019_02_09_044520_create_articles_table.php