Support the ongoing development of Laravel.io →

633 Threads

Accessing Factories from within a related Factory

Heyho, I have a testing situation, where I have users in different steps of a process and multiple m...

0 Likes 0 Replies

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

Tests sometimes fail running php artisan test --parallel

The application I'm working on has ~ 2.000 feature tests. Running php artisan test takes about ten m...

1 Likes 0 Replies

Parallel testing issue with PHP 8.1 in Sail

I have an interesting issue with my Laravel 8 project. I have a number of unit tests setup. When I r...

0 Likes 0 Replies

Running Laravel Dusk In Vagrant - Operation timed out

Hi everyone, I'm using a vagrant box (not homestead) to host our laravel project. I'm trying to use...

0 Likes 0 Replies

Hosting Laravel website

Hello, I am new to web development. I am fresher and Laravel trainee. I just build the demo website...

0 Likes 1 Replies

how to integrate Trackingmore API in laravel

Hello , i'm wondering how i can add trackingmore api in my laravel project in order to track parcels...

1 Likes 1 Replies

Make real HTTP requests in the testing environment

Hi, I'm working on the integration of Blackfire performance tests within our Laravel integration tes...

0 Likes 0 Replies

[Laravel 6.20] - Issue trying to assert Response structur

Laravel Version: 6.20.30 PHP Version: 7.2.8 Database Driver & Version: Mysql 5.7 Description:...

0 Likes 0 Replies

Method is not supported on HTTP Test API

I'am trying to test my login API with TestCase. The dump of response of PHPunit is: R{#1553 +"t...

0 Likes 3 Replies

Is there a sexyer way to write this code? (Laravel/Scout)

Hi everyone, name is Lucas, first post here and I'm learning Laravel and loving it. I'm working in a...

1 Likes 1 Replies

How to code for validating multiple data with similar parame

These are my API https://stackoverflow.com/questions/66469599/how-to-code-for-validating-multiple-da...

0 Likes 0 Replies

Passport test logout after actingAs

How can I test logout using passport after actingAs? Token revoke doesn't seem to work

0 Likes 0 Replies

assertSee failing when searching for text on datatable

Dusk Version: 6.4 Laravel Version: 6.2 PHP Version: 7.3 Database Driver & Version: mysql Ver...

1 Likes 0 Replies

Testing validation rule exists

Hello, I have a form request class with a validation rule that looks like this 'array.*.type' =>...

0 Likes 1 Replies

Mocking Notification failed to sent notification

I want to fake notification but always it asserting false and say The expected [App\Notifications\Ne...

1 Likes 2 Replies

"Class view does not exist", phpunit with code coverage

I'm trying to add the code-coverage report feature for phpunit in Laravel 6 by following the tutoria...

0 Likes 0 Replies

Trying to get property 'headers' of non-object

Hello i have installed 2fa on my code and when i enable that on user. i get error and i cant view an...

0 Likes 1 Replies

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...

1 Likes 1 Replies
Solved

Strange behavior while testing

`$ad = Ad::create([ 'title' => 'This is first ad', 'body' => '', ]); dump($ad->title);...

0 Likes 1 Replies

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?

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

© 2022 Laravel.io - All rights reserved.