Support the ongoing development of →

629 Threads

26 Jan, 2017 at 12:08

Issue with Mockery when injecting multiple mocked objects into controller

I'm using Mockery in my Laravel based PHP project to help test a Laravel MVC controller. Below is th...

0 Likes 0 Replies
4 Jul, 2016 at 10:46

PHPUnit memory usage due to large routes.php file

I have a Laravel project with 1000+ tests. What I noticed is that the larger my routes.php file gets...

0 Likes 6 Replies
19 Jan, 2017 at 06:39

Testing Thread

This sentence is the first paragraph..

0 Likes 1 Replies
4 May, 2015 at 10:59

How to mock the get method for Storage?

This is my controller: $file = Storage::get('app.apk'); $ret = new Response ($file, 200); $ret->h...

0 Likes 5 Replies

php artisan serve not working

When I type in php artisan serve --host I got this error [Wed Jan 14 12:54:12 2015] Failed...

0 Likes 2 Replies

Way to "collapse" migrations?

Hello, I'm using SQLite to run unit tests on Jenkins and am unable to use the 5.2 migrations to crea...

0 Likes 1 Replies
27 Dec, 2016 at 04:05

Running Unit Test

I'm trying to run phpunit on a Homestead VM (Vagrant) and getting the following error: http://larave...

0 Likes 2 Replies
25 Dec, 2016 at 11:21

Is anyone using Behat 3, Laravel 5 and zombie.js 4?

I'm trying to get a Behat environment setup within Laravel which is able to test a Laravel applicati...

0 Likes 0 Replies
17 Mar, 2015 at 08:59

UnitTesting and the CSRF Token Mismatch Problem

Hey peoples, Just today I started looking at how to UnitTest some of my code in Laravel. In general,...

0 Likes 4 Replies
12 Dec, 2016 at 09:15

Auto add tags in thread

Hi Friends, I don't know this is the right place to add this kind of question/suggestion about larav...

0 Likes 0 Replies

disable default security features

Hi I want use laravel for creating a vulnerable web application portal to teach web attack to our st...

0 Likes 1 Replies

Continuous Integration Vendor Problems

Hello, So I have a Laravel project hosted in source control. Continuous integration is running for P...

0 Likes 2 Replies

Problem rollover on iphone with IOS 8.0

Hello, kindly I can help to understand why the rollover of the mobile is fine with all devices excep...

0 Likes 1 Replies

How to define factories outside ModelFactory.php?

Hi, I'm currently splitting a larger app into smaller modules and would like to split the defined fa...

0 Likes 3 Replies
18 Nov, 2016 at 11:47

Faker NOT NULL constraint failed:

I have the following class: class Type extends BaseModel { use Translatable; public $translated...

0 Likes 1 Replies

Unit testing : Phpunit command doesn't exists

Hi, I'm trying to launch my unit tests but when i write phpunit in my terminal i get "phpunit:...

0 Likes 7 Replies
14 Oct, 2014 at 12:02

Dependency injection + ServiceProvider with custom class?

I'm having trouble understanding best practices for using dependency injection with my custom classe...

0 Likes 6 Replies

How to select table data in orderby id desc then groupby name in laravel 5.3?

I do this but can not work.. DB::table("office_costing_zone") ->orderBy("id",...

0 Likes 2 Replies

Testing middleware with cookies

I made some middleware which checks if a user has registered its device. Therefore it checks if the...

0 Likes 1 Replies
30 Oct, 2016 at 08:13

Class 'session' not found

FatalErrorException in fa17d9d6b5a07c22ff5e6c69223c8360c8d5d8ae.php line 23: Class 'session' not fou...

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