Looking to hire Laravel developers? Try LaraJobs

laravel-api-blog maintained by giant41

Description
Simple Blog CRUD with Laravel and Vuejs.
Author
Last update
2023/01/04 10:31 (dev-dependabot/npm_and_yarn/json5-1.0.2)
License
Links
Downloads
5

Comments
comments powered by Disqus

Laravel + VueJs API CRUD

Quick Start

Database Name

laravel_api_blog

Install Dependencies

  • composer install
  • composer create-project giant41/laravel-api-blog
  • cd 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