Support the ongoing development of Laravel.io →

537 Threads

"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

Strange behavior while testing

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

0 Likes
1 Replies
posted 4 years ago

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

Unit Test temporaryUrl

I got an error when im running the unit testing when i add temporaryUrl on retrieving file from s3 ....

0 Likes
0 Replies
posted 5 years ago

Performance testing

Hello, I'm new here and this is my first thread here, becouse I'm slowly getting desperate about a t...

0 Likes
0 Replies
posted 5 years ago

How to test multiple file upload

Laravel 6 PHP 7.3 I'm trying to test upload multiple files $this->postJson('/products', [ '...

0 Likes
0 Replies

How to get the error description on file upload

UploadedFile {#576 ▼ -test: false -originalName: "rid_full.xlsx" -mimeType: "applicat...

0 Likes
0 Replies

Cancel event before propagation

I'm using Laravel events for broadcasting to pusher package (I'm using Laravel websockets, so it's n...

0 Likes
0 Replies

How do I deploy the laravel web app to cpanel

I'm slightly new to laravel and managed to build a simple website using laravel. I tried to deploy t...

0 Likes
14 Replies

Test a command is queued

I have a command, which uses the queue method on the Artisan facade. Using the Bus/Queue fakers in a...

0 Likes
0 Replies

What's your experience been working with Laravel Shift?

Hi, I'm just keen to learn what experiences others have had working with Laravel Shift (laravelshift...

0 Likes
0 Replies

L5.8 assertSessionHasErrors() fails to assert false or true

Laravel Version: 5.8.* PHP Version: 7.1.19 Database Driver & Version: MySql 5.6.37 Description:...

0 Likes
0 Replies

How can I make a forum like this in Laravel?

Please help me. I have tthe auth system, the dashboard and more pages, but i need a forum. Please he...

0 Likes
4 Replies
posted 5 years ago

Laravel testing issue

Hai am new in laravel testing .I have facing below issue Tests\Feature\ApiTest::testnewhistory Expe...

0 Likes
0 Replies

HELP ME PLEASE. APP_URL= not changing to my domain

Tests\Feature\ProjectsTest::test_a_user_can_create_a_project Symfony\Component\HttpKernel\Exception\...

0 Likes
0 Replies

Change test files directory in Dusk

Hi! I want to start using Laravel Dusk to my browser tests, but my test files are under resources/te...

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

Laravel.io

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

© 2024 Laravel.io - All rights reserved.