Asynchronous actions on a Laravel resource controller. For step by step instructions, visit my blog post.
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.
- Create a new post
- Show a post
- Edit a post
- Delete a post
- Mark a post as published/unpublished
Please refer to the Laravel licence