Laravel 5.4 AJAX CRUD
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app Place new posts in the first row Jul 15, 2017
bootstrap first commit Feb 7, 2017
config first commit Feb 7, 2017
database first commit Feb 7, 2017
public Compress images Feb 7, 2017
resources Empty out inputs in add modal Feb 13, 2019
routes first commit Feb 7, 2017
storage first commit Feb 7, 2017
tests first commit Feb 7, 2017
.env.example first commit Feb 7, 2017
.gitattributes first commit Feb 7, 2017
.gitignore first commit Feb 7, 2017
artisan first commit Feb 7, 2017
composer.json first commit Feb 7, 2017
composer.lock first commit Feb 7, 2017
package.json first commit Feb 7, 2017
phpunit.xml first commit Feb 7, 2017
readme.md Update readme.md Nov 4, 2017
server.php first commit Feb 7, 2017
webpack.mix.js first commit Feb 7, 2017

readme.md

AJAX CRUD for Laravel 5.4

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

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