Skip to content

Project KK4 Web Programming and Mobile Device Laravel #4

License

Notifications You must be signed in to change notification settings

mardhanawn/laravel-api-crud

Repository files navigation

Laravel API - Module-04 CRUD

Laravel API Project - Create, Read, Update and Delete (CRUD)

Requirements

  • Composer
  • PHP >= 7.1.3
  • MySQL or MariaDB

Tutorials

Challenge

  • Clone this repositories
  • Install depedencies
$ composer install
  • Create .env file
$ cp .env-example .env
  • Genereate key (laravel and jwt)
$ php artisan key:generate
$ php artisan jwt:secret
  • Modify .env file, configure the database connection string
  • Create a migration and a model file for the material table
  • Migrate database
  • Implement UuidTrait, modify model file that have been made
<?php
...
use App\Traits\UuidTrait;
...
class ...
{
    use UuidTrait;
    ...
}
  • Create a new controller and add the crud command
  • Create endpoints for controllers that have been made
  • Use the postman to check the API that has been made
  • Push project to this repositories
  • Take a screenshot of your repositories link and post to the KK4-B Google Classroom

Example Laravel Migration Table Schema

  • Material Table
Column Name Column Type
uuid uuid
thumbnail string(100)
title string(200)
content text

About

Project KK4 Web Programming and Mobile Device Laravel #4

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published