PHP code example of medianet-dev / api-tool-kit
1. Go to this page and download the library: Download medianet-dev/api-tool-kit library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
medianet-dev / api-tool-kit example snippets
$users = User::dynamicPaginate();
Car::useFilters()->get();
app(CreateCar::class)->execute($data);
$filePath = MediaHelper::uploadFile($file, $path);
namespace App\Enums;
class UserTypes extends Enum
{
public const ADMIN = 'admin';
public const STUDENT = 'student';
}