Support the ongoing development of →

632 Threads

22 Oct, 2021 at 01:16

Hosting Laravel website

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

0 Likes 0 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

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 0 Replies
11 Aug, 2021 at 01:52

[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

How do i make a download button that appears after 5 seconds

l Hey Guys I Am Making Download Buttom Appearf 5 Second But Code Not Working,I have added a download...

0 Likes 1 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
7 Mar, 2020 at 11:44

Strange behavior while testing

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

0 Likes 1 Replies
3 Mar, 2020 at 10:43

How to mock a class and call constructor wit arguments?

No matter what I do, the constructor of the mocked class isn't called. The constructor has one param...

0 Likes 0 Replies

Laravel 6 Multi Tenancy

I want to create a laravel app with multiple users but I can not find a simple way to do so. Is ther...

0 Likes 1 Replies

Connection refused for mysql in gitlab-ci for Laravel 6

I created tests with relation the database. I setting up the gitlab-ci.yml for Laravel. When the fil...

0 Likes 0 Replies

Auth::user() returns null in test with data provider

I am testing my application (5.8) with the integrated PHPUnit configuration and I have problems with...

0 Likes 2 Replies

Thanks to our community

Solutions given in the past year.


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.

© 2021 - All rights reserved.