Category: Laravel, Laravel

In my previous article, I had explained why should we use Laravel factories.

In this article let's see how we can use Factory states to write fluent test cases.

Since we can write more cleaner we can use this approach.

Factories To Speed Up Test-Driven Development In LaravelStripe Payment Integration With LaravelWriting Clean Code In PHPForeign Key Migrations Simplified In Laravel 7.xGlobal Data In All Laravel Blade PagesSelect2 DropdownObservers In LaravelRelationship Table Data With Route Model Binding In LaravelGetting Started With AMP (Accelerated Mobile Pages)Setup AMP (Accelerated Mobile Pages) In PHP LaravelAdd Analytics To AMP (Accelerated Mobile Pages) HTML PagesAdd Google ADS In AMP (Accelerated Mobile Pages) Website
Newsletter

Get the latest Laravel/PHP jobs, events and curated articles straight to your inbox, once a week

Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge. Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge.
Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Shirts painstakingly handcrafted by under-caffeinated developers. Shirts painstakingly handcrafted by under-caffeinated developers.
Community Partners