Skip to content
This repository has been archived by the owner on Aug 4, 2023. It is now read-only.

(Test Driven Development) (Live Link) (04-Aug-2023) With Laravel 10 we build a GDPR compliant users API system. I have been working with Laravel since Laravel 5.4 - www.endoflife.date/laravel

License

Notifications You must be signed in to change notification settings

kkamara/users-api-laravel-10-php

Repository files navigation

MainClass.png

movies.png

users-api-laravel-10-php API

(Test Driven Development) (04-Aug-2023) With Laravel 10 we build a GDPR compliant users API system. I have been working with Laravel since Laravel 5.4 - www.endoflife.date/laravel

Tinker

php artisan tinker
> $u = new \App\Models\User;
= App\Models\User {#6216}

Installation

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

Usage

# php artisan serve
php artisan serve --port 3000

Api Documentation

php artisan route:list
# example output:
...
POST       api/user ............................ login › Api\UserController@login
GET|HEAD   api/user/authorize .................. Api\UserController@authorizeUser
POST       api/user/register ................... Api\UserController@register
...

Run Tests

# php artisan test
php artisan test --testsuite=Feature

Misc

See Laravel 10 movies app.

See laravel makefile

See Laravel 9 food nutrition facts search web app.

See crm.

See php scraper.

See amazon scraper.

See python amazon scraper 2.

See wordpress.

Contributing

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.

License

BSD

About

(Test Driven Development) (Live Link) (04-Aug-2023) With Laravel 10 we build a GDPR compliant users API system. I have been working with Laravel since Laravel 5.4 - www.endoflife.date/laravel

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages