In Stripe test mode buy products. With web hooks. A Laravel 10.x app.
php artisan tinker
$ > $p = App\Models\Product::factory()->create();
$ = App\Models\Product {#6353
$ name: "Natus nisi quaerat ducimus quia. Animi itaque adipisci voluptatem quasi est quia nisi iure.",
$ price: 594.57,
$ image: "https://via.placeholder.com/640x480.png/0055cc?text=numquam",
$ updated_at: "2023-11-30 12:51:52",
$ created_at: "2023-11-30 12:51:52",
$ id: 1,
$ }
Thunder client Visual Studio Code extension.
thunder-collection_PHP Reactjs Boilerplate.json
# Create our environment file.
cp .env.example .env
# Install our app dependencies.
composer i
# Using Docker?
make dev && make backend-migrate
# Not using Docker?
php artisan key:generate
php artisan migrate --seed
npm install
npm run build
php artisan serve --port=3000
php artisan route:list
# output
...
POST api/user ............................ login › Api\UserController@login
GET|HEAD api/user/authorize .................. Api\UserController@authorizeUser
POST api/user/register ................... Api\UserController@register
...
View the api collection here.
You can test the /job
endpoint to invoke a job example you can then view at
alias sail='vendor/bin/sail'
sail artisan queue:listen redis --queue stuff
# output
[2022-04-16 13:30:17][KttOLxAyP6mnsNGScDLbKAgvxpJ7M0AA] Processing: App\Jobs\TestJob
[2022-04-16 13:30:17][KttOLxAyP6mnsNGScDLbKAgvxpJ7M0AA] Processed: App\Jobs\TestJob
php artisan test --filter api
View the unit test code here.
alias sail='vendor/bin/sail'
sail dusk
You can test the /mail
endpoint to send a test mail you can then view at :8025/
.
Mail environment credentials are at .env.
The mailhog docker image runs at http://localhost:8025
.
See Stripe Payments PHP Reactjs App.
See Github to Bitbucket Backup Repo Updater.
See food nutrition facts search web app.
See wordpress with docker support.
The Makefile
for this project contains useful commands for a Laravel application and can be found at laravel-makefile.
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.