mahfuz15 / Apsis-Test-Project

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Apsis Test Project

Task Details

There will be item list in database. Item may have sub item. Sub item may also have child.

To Do

1. creating an item table.
2. Querying from the table.
3. Displying the item list.

Sample Output

  • Item-1
    • Item-1.1
    • Item-1.2
    • Item-1.3
      • Item-1.3.1
      • Item-1.3.2
    • Item-1.4
  • Item-2
    • Item-2.1
    • Item-2.2
      • Item-2.2.1
      • Item-2.2.2
        • Item-2.2.2.1
          • Item-2.2.2.1.1
        • Item-2.2.2.2
      • Item-2.2.3
    • Item-2.3

Stack

1. Laravel v7.0
2. Bootstrap v5.0

Items Table

1. id - bigint(20)
2. name - varchar(255), Required
3. parent_id - int(11), Default(0)

Route

URL Method Controller Action
/ GET ItemController index
/create GET ItemController create
/store POST ItemController store
/edit/2 GET ItemController edit
/update/2 PUT ItemController update
/show/2 GET ItemController show
/delete DELETE ItemController destroy

Installaion

1. Clone the project from repository.
2. Create database.
3. Set database credentials into .env file.
4. Run migration using php artisan migrate command.
5. Seed the table using php artisan db:seed command (Optional).

About


Languages

Language:PHP 86.4%Language:Blade 12.8%Language:Shell 0.8%