Support the ongoing development of Laravel.io →

101 Threads

Laravel 5, PHPUnit, app var is null

I'm trying to recreate this line from a controller in a PHPunit test in laravel 5. $routes = $this-...

0 Likes
1 Replies
Solved

How do I echo session array in laravel? getting Array to string conversion error message

Hi Everyone How would I echo a session array in laravel? AccountController.php $name = makeRandom...

0 Likes
11 Replies
Solved

Routing (:any)

Hi guys! I currently have a problem where I get stuck. I want to when you call example.com/xxx.jpg,...

0 Likes
1 Replies
Solved

Laravel 5: Contracts and separation of concerns .

Im really struggling to understand the whole concept of Contracts in Laravel 5. Interfaces I underst...

0 Likes
4 Replies
Solved

Codeception Laravel4 module ignores config

Hey, I am trying to do some acceptance testing with Codeception and for some reason it is ignoring m...

0 Likes
1 Replies
Solved

Carbon::createFromFormat suddenly broke?

I created this quick snippet of code to display the Output: $dates = []; for ($i=1; $i <= 12;...

0 Likes
3 Replies
Solved
posted 9 years ago

How do I properly mock a repository?

I've given up a couple times now but with a fresh night of sleep I'm back at it because I'm determin...

0 Likes
1 Replies
Solved

Don't find .htaccess file.

I have installed laravel(4.2) via composer on my ubuntu desktop.. The problem is i don't find the .h...

0 Likes
5 Replies
Solved

Laravel environment selection in CodeCeption acceptance tests

I'm trying to set up CodeCeption, with great success so far. The problem that I have though is that...

0 Likes
4 Replies
Solved

Running laravel & CodeCeption acceptance tests on travis-ci

Hey, has anyone tried to run codeception acceptance tests with laravel on travis-ci? I'm stuck at th...

0 Likes
2 Replies
Solved
posted 9 years ago

IoC not using my mocks in test cases

I'm having some issues with testing. I have the testLoginStart method in the unit test here: https:/...

0 Likes
1 Replies
Solved
posted 9 years ago

Laravel codeception problem with test not passing

Can someone give me a pointer in the right direction? :-) Below a very simple test. User is on a pos...

0 Likes
1 Replies
Solved

Can I specify a database connection for an individual unit test?

My test suite currently has 67 tests and 167 assertions. If I run the tests in a SQLite memory datab...

0 Likes
2 Replies
Solved

Testing in workbench - Class not found

Hello, i need some help on how to run phpunit tests in workbench. Running phpunit i always get a &qu...

0 Likes
1 Replies
Solved
posted 9 years ago

Unit testing controller call dropping variables

Hello, Any idea as to why a call such as this: $response = $this->action('POST', 'feedbackControl...

0 Likes
2 Replies
Solved

Laravel PDF with BarCode

Hello guys, I'm working in a kind of shop and will be working in Mexico but I need to create PDF for...

0 Likes
2 Replies
Solved
posted 9 years ago

Codeception wont follow redirects

I've rebuilt with the Laravel4 module, and still when I return Redirect::to('/'); (or anywhere for t...

0 Likes
2 Replies
Solved

Missing argument 1 for Illuminate\Support\Manager::createDriver()

Hey devs! Lately I'm getting this exception: http://laravel.io/bin/aGBN I can't really figure out th...

0 Likes
3 Replies
Solved
posted 9 years ago

TDD and Bug fixes

Hi All, Is it practical to use TDD when doing bug fixes to an existing project. If the project has g...

0 Likes
1 Replies
Solved
posted 9 years ago

Travis CI fails; PDOException: Unknown database

So my application obviously uses MySQL like many others but how do I get this to work with travis? D...

0 Likes
2 Replies
Solved

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.