Support the ongoing development of →

629 Threads

Cannot override model factories default

I can't workout why I cannot override the values specified in my ModelFactory.php file, from within...

0 Likes 6 Replies

[SOLVED]Adding Foreign Key :: Migrations

Before I start, I ask politely, that you forgive me as I struggle to put things into words. Sufferin...

0 Likes 2 Replies

Lumen 5.5 - Testing and mocking repositories

Hi all, I am having a hard time to test my rest api app, I think the main reason is because of https...

0 Likes 0 Replies
7 Mar, 2014 at 05:55

TestCase tests unable to make multiple call()

I have a class that extends TestCase. I had a setUp() that was doing a $this->call(...) and then...

0 Likes 11 Replies

PHP God Game training

Hi guys I'm due to give a training on agile software development in PHP in a couple of weeks - not L...

0 Likes 1 Replies

Best option , Laravel Many to Many or Not

Hello guys , does some one could help me ? I am developing a real estate website , something like th...

0 Likes 2 Replies

Fake session object for dummy user

I want to create fake session for dummy user in Test

0 Likes 0 Replies

502 Bad Gateway

Hi Folks! I'm using Laravel Valet for the quick preview of my project. But now whenever I'm trying t...

0 Likes 1 Replies
27 Oct, 2017 at 11:26

unable to test filesystem temporaryUrl

Laravel Version: 5.5.11 PHP Version: 7.1 Database Driver & Version: MySQL Description: I have...

0 Likes 0 Replies
12 Aug, 2015 at 09:44

Why does PhpUnit not display stack trace for application errors?

Hi Guys! I have a controller with a create method that returns a view which doesn't exist. I get the...

0 Likes 4 Replies

File is not being deleted in tests when using deleteFileAfterSend

I am testing that a file is remove after a response download as below: UploadedFile::fake() ->...

0 Likes 0 Replies
11 Oct, 2017 at 08:58

Testing Controllers, FormRequests, Policies, etc

Hi everybody, I just started studyng the fabulous world of automated testing. Main concepts seems pr...

0 Likes 2 Replies
25 Sep, 2017 at 01:24

Test input arrays in laravel 5.5 ignore empty or null input values

I am currently testing a championship tree with 16 competitors. Each competitor can be updated via a...

0 Likes 0 Replies

PHPUnit fails to count with group by on query to the database view (not table)

Laravel Version: 5.4.* PHP Version: >=5.6.4 Database Driver & Version: MySQL (Testing with S...

0 Likes 0 Replies

Create a Factory without a model?

I want to define a factory for a post from the front end. There's no model for it. How do I make a f...

0 Likes 0 Replies

laravel is slow

Hi, my laravel is very slow. It takes 360ms - 1.5s to load (acoording to the debug bar) The database...

0 Likes 20 Replies

phpunit test cases for omnipay purchase and send method.

I've written new repository using omnipay for x payment gateway. I've successfully written test case...

0 Likes 0 Replies
18 Dec, 2014 at 06:11

Eloquent model events are not triggered when testing bug #1181

After spending hours of time trying to track down a frustrating issue with unit testing where my mod...

0 Likes 1 Replies

Dusk changes the request and 404 error returns

Hi everybody I am trying to get my first Dusk test working and got stuck. The problem is that I keep...

0 Likes 0 Replies

Assert Exact JSON Structure?

Currently, I'm using assertJsonStructure in order to validate the structure, but it doesn't check th...

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.