项目作者: mcnika

项目描述 :
Laravel 5.8 Ajax CRUD
高级语言: PHP
项目地址: git://github.com/mcnika/laravel-ajax-crud.git
创建时间: 2019-03-06T12:11:23Z
项目社区:https://github.com/mcnika/laravel-ajax-crud

开源协议:

下载


Laravel Ajax CRUD

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

Installation

  1. Clone the repository:

    1. git clone https://github.com/mcnika/laravel-ajax-crud.git
  2. Move to the newly created folder:

    1. cd laravel-ajax-crud
  3. Install all the dependencies:

    1. composer install
  4. Create a new database. Then rename .env.example to .env and provide your database credentials:

    1. DB_CONNECTION=mysql
    2. DB_HOST=127.0.0.1
    3. DB_PORT=3306
    4. DB_DATABASE=homestead
    5. DB_USERNAME=homestead
    6. DB_PASSWORD=secret
  5. Migrate the database:

    1. php artisan migrate
  6. Fill the tables with data:

    1. php artisan db:seed --class=ContactsTableSeeder
  7. Generate the application key:

    1. 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