With Laravel Poser, you can “create class-based model factories in Laravel applications in seconds.” This package works by creating factory classes by hand or using the artisan make:poser command:1namespace Tests\Factories;2 3use Lukeraymonddowning\Poser\Factory;4 5class UserFactory extends Factory {}Here’s a basic...
03 February, 2022
Redaxios Fetch Wrapper With an Axios API
Programing Coderfunda
February 03, 2022
Laravel, Packages, php
No comments
Redaxios is an NPM module by Jason Miller that provides a middle-ground solution when you want to have a lightweight Axios-like API wrapper around the fetch() API—which most modern browsers support: " "" "> " "";">Axios has a great API that developers love. Redaxios provides that API...
02 February, 2022
Pass Named Handler Arguments to Middleware in Laravel
Programing Coderfunda
February 02, 2022
Laravel, Packages, php
No comments
Has Parameters is a Laravel package by Tim MacDonald to “pass arguments [to middleware] in a more PHP’ish way.”Here’s an example of the primary usage as found in the project’s readme:First, the following is a simplified example of what Laravel’s ThrottleRequests middleware might look like:1class ThrottleRequests2{3 ...
Open Food Facts API
Programing Coderfunda
February 02, 2022
Laravel, Packages, php
No comments
Open Food Facts is a free food product database you can use to make better food choices. The database has over 1.3 million products listed at the time of writing, including food information such as ingredients, allergens, nutrition facts, and other miscellaneous information found on product labels.The developers of Open Food Facts have...