Support the ongoing development of Laravel.io →

101 Threads

Making a test for the “string” validation in Laravel

When thinking about the purpose of the “string” validation, I immediately think about how html forms...

0 Likes
1 Replies
Solved

Empty providers for Faker with `php artisan test`

I'm trying to use Faker for unit testing. Faker fails to generate random data for the model instance...

0 Likes
2 Replies
Solved

How to Set Cookies During Unit Test? (new solution)

I had the same problem working with laravel in version 5.5 presented in the thread erkanarslan, howe...

websterl3o liked this thread

1 Likes
1 Replies
Solved

Dusk directory vs phpunit

Hi, first time i try dusk. So i follow steps in documentation. After dusk installation, we see a new...

0 Likes
1 Replies
Solved
posted 4 years ago

dusk performances

Hi, I'm experiencing performance problems: I'm sure my test is very simple and fine, but it fails. P...

0 Likes
6 Replies
Solved
posted 7 years ago

Running Unit Test

I'm trying to run phpunit on a Homestead VM (Vagrant) and getting the following error: http://larave...

0 Likes
2 Replies
Solved
posted 7 years ago

Faker NOT NULL constraint failed: types.name

I have the following class: class Type extends BaseModel { use Translatable; public $translated...

0 Likes
1 Replies
Solved

Dependency injection + ServiceProvider with custom class?

I'm having trouble understanding best practices for using dependency injection with my custom classe...

0 Likes
6 Replies
Solved

Testing middleware with cookies

I made some middleware which checks if a user has registered its device. Therefore it checks if the...

0 Likes
1 Replies
Solved

Unit Tests fails with unexpected response code

I'm quite new to laravel development. I'm trying to create a unit test, which should fail (response...

0 Likes
3 Replies
Solved

laravel passport components are not loading on AMPPS (AMP stack)

When I try to check my project which is running on AMPPS (AMPPS is a cross platform AMP stack) on ub...

0 Likes
1 Replies
Solved

Performance of Laravel on production

We are newbie start-up using Laravel for our application running in AWS Beanstalk. I just want to as...

0 Likes
2 Replies
Solved

Test Commands in Packages

Hey there, I am trying to write some tests for my commands which are within a package. I managed to...

0 Likes
2 Replies
Solved

phpunit: Permission denied

Hi all, I am currently using laravel 5.2, and using vagrant box as my development environment, in ub...

0 Likes
1 Replies
Solved

Codeception writes in production db and reads from testing

I am trying to write functional tests for my app. I am using Laravel 5.2 and Codeception. I have a s...

0 Likes
1 Replies
Solved
posted 9 years ago

Testing artisan commands

I have two artisan commands and would like to write test cases for it, can't i do it? I didn't find...

0 Likes
4 Replies
Solved

Should I test Listeners, Events, Exceptions and Providers

I am using Codeception for unit and functional tests. Should I test Listeners, Events, Exceptions an...

0 Likes
1 Replies
Solved

Unable to run multiple tests on controller

I'm attempting to clean up an existing application by writing unit tests for some legacy code (and u...

0 Likes
4 Replies
Solved

Laravel 5 unit testing controllers with auth middleware

I'm trying to write some unit tests for my controllers in Laravel 5 The route is protected by the au...

0 Likes
6 Replies
Solved

Issue with adding soft deletes in a later migration

Hello, the issue I'm having is that I created a user table as my first migration, then added a migra...

0 Likes
1 Replies
Solved

Thanks to our community

Solutions given in the past year. Excluding solutions from thread authors.

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.