Support the ongoing development of →

636 Threads

partialMock of Facade does not set the dependencies

See Github issue #48248 for all information Hi all! When writing tests for a rate-limited endpoint...

0 Likes 2 Replies

laravel + sanctum, SPA authentication and testing it

Hello everyone. I'm trying to make a small SPA using vue.js and laravel sanctum. I did everything ac...

0 Likes 0 Replies

Run tests in parallel with Postgres and Elastic

Hi, I have a web application for which I am trying to setup parallel testing. The project has 2 data...

0 Likes 2 Replies

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

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

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
posted 1 year ago

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

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

Thanks to our community

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


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.

© 2023 - All rights reserved.