Laravel 5.8 Ajax CRUD
This is a simple implementation of Ajax Crud with Laravel 5.8.
Clone the repository:
git clone https://github.com/mcnika/laravel-ajax-crud.git
Move to the newly created folder:
cd laravel-ajax-crud
Install all the dependencies:
composer install
Create a new database. Then rename .env.example to .env and provide your database credentials:
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=homestead
DB_USERNAME=homestead
DB_PASSWORD=secret
Migrate the database:
php artisan migrate
Fill the tables with data:
php artisan db:seed --class=ContactsTableSeeder
Generate the application key:
php artisan key:generate
Now open the browser and visit the app. Note! you will need to login to see just created data. Open the database, for example with phpMyAdmin and grab the email address from users table. Use that email and “password” password to login.
You can also register and add your own contact list.
Login:
Contact list:
Create a contact:
Delete a contact: