Support the ongoing development of Laravel.io →

Zizaco/entrust - Need a Functions to Get a all Roles for single User

I have assigned multiple roles for a user and I ll need to function to get all the roles based on t...

0 Likes
0 Replies
posted 10 years ago

Inverse of "save" for an "hasMany" relationship.

Hi, I have, say, a Post object that belongsTo a User object. The User object hasMany Post objects. I...

0 Likes
4 Replies

preg_replace(): Parameter mismatch, pattern is a string while replacement is an array

I have a checklists table and an items table. The relationship between both is hasMany. A checklist...

0 Likes
1 Replies

which files to upload to server after composer dump-autoload locally

I´m having no access to run composer on my clients server - so what to do when I change my controlle...

0 Likes
2 Replies
posted 10 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

Custom fields with JSON

Hi, I would like to customize the JSON which is returned by the index and show functions of the cont...

0 Likes
4 Replies
posted 10 years ago

How can I modify protected Illuminate\Routing\UrlGenerator::$dontEncode?

I'd like to be able to do things like URL::route('viewUser',['{{id}}']) without the { and } chars ge...

0 Likes
7 Replies
Solved

Eloquent Observation - "Cumulative" method chaining?

So, I had a pretty common need to generate a query against a table based on multiple column values....

0 Likes
0 Replies
posted 10 years ago

CPU spikes due to many cache files?

We recently moved our application to Laravel. This has all been going great, but we ran into one pro...

0 Likes
0 Replies
posted 10 years ago

Eloquent with PHP 5.2

I want to use Eloquent outside of Laravel, but I need to be compatible with PHP 5.2. Which version s...

0 Likes
4 Replies
Solved

Quickstart: undefined variable error exception

Coming over from Kohana to try out Laravel. I'm using the Homestead vagrant box. Following the Quick...

0 Likes
1 Replies
posted 10 years ago

Laravel 4 RESTful Controller PUT Request not working

Hi, I'm using laravel 4 with backbone and it has been working fine up till now. I'm trying to update...

0 Likes
3 Replies
posted 10 years ago

how to set path for my laravel files

-Hello Developers ,I want to set paths in public/index.php and bootstrap/paths for my cpanel my home...

0 Likes
2 Replies

Session not persisting

Hello! After the user login on the admin panel I redirect him to the dashboard, but on that page the...

0 Likes
0 Replies
posted 10 years ago

The $model returned by the create method of Model doesn't contain all attributes such as deleted_at

for example: $input = ['username'=>'abcd123']; $user = \User::create($input); $user attributes:...

0 Likes
4 Replies
Solved
posted 10 years ago

Overriding package controller

Hi there, I don't know if my question makes sense, but let me explain my issue first: I'm using a pa...

0 Likes
0 Replies

In mysql.log only PREPARE, why?

I try run this code: $rows = DB::table(CustomerNumber::TABLE) ->join(NumberGroup::TABLE, functio...

0 Likes
0 Replies

Mod rewrite enabled but no clean urls

Guys, Im running Linux Ubuntu on my server, but i dont get clean URLs. My htaccess is laravels defau...

0 Likes
1 Replies
posted 10 years ago

Where can I find documentation of particular feature of @extends syntax?

All of my views basically start like this: @extends("templates.core",["title"=&g...

0 Likes
0 Replies

Paginator view

Hy guys, I would appreciate a lot if someone could help me. My problem is that I have frontend and b...

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.

© 2025 Laravel.io - All rights reserved.