Support the ongoing development of Laravel.io →
posted 10 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

Multiple conditional joins

So i tried using multiple conditionals on my join but laravel assumes that on join i will be compari...

0 Likes
1 Replies

Inject controller name to layout

Hey guys, I'd like to inject controller and action names automatically to the returned view to add b...

0 Likes
2 Replies
Solved

Run Artisan Migration Commands using Homestead

I'm using Vagrant and Homestead for the my local development work. One thing I'm really trying to fi...

0 Likes
0 Replies
posted 10 years ago

2 queries to 1

Hey guys, How can i optimize this? I dont know how to explain well from dutch to english. With the f...

0 Likes
1 Replies

4.3 passing eloquent model from FormRequest to controller.

If we are doing authorization in the FormRequest is there a way to pass the model to the controller...

0 Likes
1 Replies
Solved

Vagrant Warning: Connection timeout. Retrying...

I'm truing to vagrant up but issuing troubles. default: SSH address: 127.0.0.1:2222 default:...

0 Likes
2 Replies
posted 10 years ago

How to set model of hasOne child relation in code.

I have a model: class Parent extends Eloquent { public function child() { return $this->has...

0 Likes
3 Replies
posted 10 years ago

Redirect with query string

How do you redirect to an action while appending a query string? Right now Im doing something like t...

0 Likes
1 Replies

What is the prefered way to retrieve related models?

Which one of these two calls is the prefered way to retrieve guests checked-in at a hotel? $guests =...

0 Likes
2 Replies
Solved

Problem with Redirect when using JQuery Form Plugin (AJAX)

Hello, I am having some issues with a form I am trying to create. The form consists of collecting ge...

0 Likes
1 Replies

How to get page number before pagination query?

Hi all, I get posts with the query below in pagination: $posts = Post::all->paginate(30); I want...

0 Likes
1 Replies

Use Laravel for multi language static website with some custom functions

Hi, I need to create a new website for our company and I am not sure about the CMS/System. At first...

0 Likes
1 Replies
posted 10 years ago

Integrating Laravel with existing codebase

Hi, I'm a bit new to Laravel so excuse my ignorance... I'm integrating Laravel into an existing site...

0 Likes
0 Replies

How to pull a database into a HTML table?

Hi Guys, I'm quite new to laravel and I'm trying to work out how to turn a database table into a HTM...

0 Likes
2 Replies

4.3 models in app directory ?

Why is this good idea? As i see it gets quickly pretty rough when you have 100+ models to work with....

0 Likes
4 Replies

Best practise for linking

There seems to be many different ways to link across pages. <a href="{{ route('users.index') }}"&...

0 Likes
2 Replies

Eloquent relationship with count

I have three models: User: public function projects() { return $this->hasMany('StoredFile', '...

0 Likes
6 Replies
Solved
posted 10 years ago

Parent tables and Pivot tables

Hi, This question might be less laravel but more sql heavy. Please bear with me for a moment. I have...

0 Likes
1 Replies
posted 10 years ago

problem with File::makeDirectory(); in laravel 4

when i tried with File::makeDirectory('foo/any',0775,true); , it is successfully creating folder but...

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

© 2025 Laravel.io - All rights reserved.