The Laravel make-testable package creates a test along with any class created using
php artisan make:* commands. After installing this package a development dependency, you can use it by adding the
--test flag to make commands:
# Before php artisan make:model Blog php artisan make:test Models\BlogTest --unit # After php artisan make:model Blog --test
This package supports the following commands:
You can learn more about this package, get full installation instructions, and view the source code on GitHub at iaK/make-testable.
Filed in: News
Join 31,000+ others and never miss out on new tips, tutorials, and more.
- Senior Laravel Developer
- Senior Full-Stack Engineer
[REMOTE: USA Only] All Other Applications Will be Rejected Immediately"
- Senior Full Stack PHP Developer
Motto Design Studio
- Software Engineer
Remote, USA Only
- Lead Backend PHP Developer
ABOUT YOU GmbH
Laravel 8.7 Released
The Laravel team released 8.7 this week with new rate-limiting constructors and an onError() HTTP client method, alon…
The next Laravel Worldwide Meetup is tomorrow
The next Laravel Worldwide Meetup is coming tomorrow, at 18:00 UTC, and you’ll be able to watch it live on the YouTub…