(29-Sep-2023) App 3. Laravel 10 GDPR compliant API system. I have been working with Laravel since Laravel 5.4 - www.endoflife.date/laravel
Thunder client Visual Studio Code extension.
thunder-collection_Laravel 10 API 3.json
php artisan tinker
> $u = new \App\Models\User;
= App\Models\User {#6216}
- PHP and MySQL
- Yarn (can be installed with
npm i -g yarn
) - https://laravel.com/docs/10.x/installation
- https://laravel.com/docs/10.x/mix#main-content
Create our environment file.
cp .env.example .env
Install our app dependencies.
composer i
Generate app key.
# php artisan key:generate
composer run post-create-project-cmd
Run migrations with seeders.
php artisan migrate --seed
Install javascript required packages.
yarn && yarn build
# Do `yarn dev` during development to see live changes
# of your blade and js and css/scss dependencies with vite.config.js
php artisan serve --port 3000
php artisan route:list -vvv
# example output:
...
POST api/user ............................ login › Api\UserController@login
GET|HEAD api/user/authorize .................. Api\UserController@authorizeUser
POST api/user/register ................... Api\UserController@register
...
php artisan test --testsuite=Feature
See Laravel 9 food nutrition facts search web app.
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.