Use the package manager composer to install Lost and Found Megabit API. This project is using PHP 7.
composer update && composer install
-
Setup mysql database and its credentials in .env file, see .env.example for example configurations. You can use XAMPP or others.
Note: use utf8_unicode_ci for database collation.
-
Migrate this project to new database.
php artisan migrate:fresh && php artisan key:generate && php artisan jwt:secret -f && php artisan config:cache
-
Run development server locally.
php artisan serve
-
The development server will run on http://localhost:8000
-
Generate documentation.
php artisan scribe:generate
Go to http://localhost:8000/docs to view documentation.
https://laracasts.com/discuss/channels/laravel/how-to-apply-https-to-the-helpers-asset-and-url
By default h_id and h_foreign_id are enabled to introduce the feature.
-
To fully enable hashed id encryption check file bellow and uncomment the code.
- app\Http\Kernel.php
- app\Models\*.php
- app\Providers\RouteServiceProvider.php
-
To remove this feature, or hashed field [ h_(field) ] in response, comment on:
protected $appends = [ ... ]
- and the functions above it.