Skip to content

mcnika/laravel-ajax-crud

Repository files navigation

Laravel Ajax CRUD

This is a simple implementation of Ajax Crud with Laravel 5.8.

Installation

  1. Clone the repository:
git clone https://github.com/mcnika/laravel-ajax-crud.git
  1. Move to the newly created folder:
cd laravel-ajax-crud
  1. Install all the dependencies:
composer install
  1. 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
  1. Migrate the database:
php artisan migrate
  1. Fill the tables with data:
php artisan db:seed --class=ContactsTableSeeder
  1. 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.

Screenshots

Login: homepage

Contact list: homepage

Create a contact: homepage

Delete a contact: homepage

Community Links

Releases

No releases published

Packages

No packages published