giant41 / laravel-api-blog
Simple Blog CRUD with Laravel and Vuejs.
0.1.0
2019-09-25 05:21 UTC
Requires
- php: ^7.2
- fideloper/proxy: ^4.0
- laravel/framework: ^6.0
- laravel/tinker: ^1.0
- laravel/ui: ^1.0
Requires (Dev)
- facade/ignition: ^1.4
- fzaninotto/faker: ^1.4
- mockery/mockery: ^1.0
- nunomaduro/collision: ^3.0
- phpunit/phpunit: ^8.0
This package is auto-updated.
Last update: 2026-07-04 17:33:38 UTC
README
Simple API for Blog Post (CRUD) with Laravel 6.0, uses the API resources as backend and vue.js as front end.
Quick Start
Database Name
laravel_api_blog
Install Dependencies
composer installcomposer create-project giant41/laravel-api-blogcd laravel-api-blog
Run Migrations
php artisan migrate
Import Articles
php artisan db:seed
Add virtual host if using Apache
If you get an error about an encryption key
php artisan key:generate
Endpoints
List all articles with links and meta
- GET
api/articles - Get
single article - GET
api/article/{id} - Delete
article - DELETE
api/article/{id} - Add
article - POST
api/article title/body- Update
article - PUT
api/article article_id/title/body