Support the ongoing development of Laravel.io →

636 Threads

posted 8 years ago

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

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

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
posted 9 years ago

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

Dropdown menu doesn't work in chrome (and touchscreen laptops I think)

Hello, Very strange issue, on this website: https://www.alfaloc.pt the dropdown menu doesn't show on...

0 Likes
0 Replies

how to get the user id in faker

while created faker how to get the user_id for the post? for example: i've created a faker for User...

0 Likes
1 Replies

Is there any SEO perelink package?

Is there any package for SEO perelinkg feature, that gives web app better indexing by web crawlers...

0 Likes
1 Replies

Call to undefined method Illuminate\Support\Facades\Config::set()

On this page: https://laravel.com/docs/5.4/mocking It states: You should not mock the Request facade...

0 Likes
1 Replies

add timestamps on multiple tables

how to add timetamps with default value on multiple tables using migrate

0 Likes
1 Replies

Argument 1 must be of the type array when seeding random data

Hi I'm fairly new to Laravel and the way sync handles collections or array has me stumped when synci...

0 Likes
2 Replies

Gulp Watch Running Excruciatingly Slow

Im been having this problem ever since I started developing and using gulp. My project is using the...

0 Likes
0 Replies

Select using pluck with 2 values

Hello all, how Can I insert more than one value into the select tag using pluck? Form::select('peopl...

0 Likes
0 Replies
posted 6 years ago

Laravel 5.4 HTTP Testing

I am writing a test for a json route in laravel 5.4, I am supposed to be redirected if the GET reque...

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