marsonosaputro / ajax-crud

Laravel 5.4 AJAX CRUD

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AJAX CRUD for Laravel 5.4

Asynchronous actions on a Laravel resource controller. For step by step instructions, visit my blog post.
Inspired by this tutorial.

Installation

Clone the repo

git clone https://github.com/jeanquark/ajax-crud.git

Move to the newly created folder and install all dependencies:

cd ajax-crud
composer install

Create a new database, for example with phpMyAdmin. Then open the .env.example file, edit it to match your database name, username and password and save it as .env file. Once done, build tables with the following command:

php artisan migrate

Now fill the tables:

php artisan db:seed

Finally, generate the application key

php artisan key:generate

Open your favorite browser and visit the newly created app.

Features

  1. Create a new post
  2. Show a post
  3. Edit a post
  4. Delete a post
  5. Mark a post as published/unpublished

Screenshots

Homepage: homepage

Table: table

Create a new post: create

Licence

Please refer to the Laravel licence

About

Laravel 5.4 AJAX CRUD


Languages

Language:PHP 72.3%Language:HTML 25.7%Language:JavaScript 1.0%Language:Vue 0.5%Language:ApacheConf 0.5%