Support the ongoing development of Laravel.io →
posted 9 years ago

How can I specify the collection name with MongoDB?

From the example I can dothis and set the collection to users_collection. How can I override it for...

0 Likes
1 Replies

Eloquent question on saving relationship

I have two tables: Stat table contains 10 names with 10 targets (just a value) Statdata table contai...

0 Likes
1 Replies
posted 9 years ago

Fetching deep, nested relationships

Hello! I have some deep, nested relationships on a model and can't seem to figure out an easy way to...

0 Likes
1 Replies
posted 9 years ago

Reset password with custom user table

Hi, I renamed my user table to 'deelnemers' and the name field to 'naam', password field to 'wachtwo...

0 Likes
0 Replies

How do I add Sentinel providers to my laravel 5.1 installation?

I'm looking at this section of the Sentinel docs: https://cartalyst.com/manual/sentinel/2.0#laravel-...

0 Likes
2 Replies

How to edit KML file in Laravel

I made a map using google maps application and load kml file for color shading in the area. To load...

0 Likes
0 Replies

SQL raw request modification to get collections

I have to use the following request to get data from DB: $users=DB::select('SELECT id,username, avat...

0 Likes
0 Replies

Hook to edit validation messages (NOT custom messages)

I can't figure how to do this. I use FormRequest in my controller so the validation happens before i...

0 Likes
0 Replies

Define relation for Companies and Groups

Hi all I'm having some issues trying to set up a relationship for two Models. ExCompany and ExGroup....

0 Likes
2 Replies
Solved
posted 9 years ago

firstOrCreate / firstOrNew only creates one property

I have a model on which I'm using firstOrNew. if an entry exists, this code: $a = CustomAssets::...

0 Likes
0 Replies

Displaying old user in select box

Hi, in my controllers edit function, I pass my view the following $csUsers = User::lists('userName',...

0 Likes
0 Replies

Has Many Through with Pivot issue

Hi everyone. I have these tables and relative Models (http://laravel.io/bin/kWmrk) network_equipment...

0 Likes
0 Replies

Create middleware to prevent a user manipulates the information of other users

I have a problem. I need to prevent a logged in user can edit / view etc. information of another us...

0 Likes
1 Replies
Solved
posted 9 years ago

Delete request Jquery Ajax doesn't work

Hi, I have a button lets say it is in a div for simplicity Button <button rel="tooltip"...

0 Likes
3 Replies
Solved

How to Use 'DATEADD' function in Laravel join?

I've a Laravel 4 join as given below: return DB::table(Location::getTableName() . ' as l')->wher...

0 Likes
0 Replies

L 5.1 - return redirect->route() not working...

Hi guys, I have a strange problem. I am not able to redirect my user if his email does not exist in...

0 Likes
1 Replies
Solved

Laravel 5 routing

I am trying to create HMVC structure in laravel.I have created a modules folder with sub folders in...

0 Likes
1 Replies
posted 9 years ago

Login Error

I am using laravel 5.1 with the default authentication controller without any overrides but i faced...

0 Likes
5 Replies
posted 9 years ago

Why `php artisan key:generate` not available in lumen?

Is there any reason the command php artisan key:generate is not available in lumen?

0 Likes
1 Replies

How i solve this parse error ?

[Symfony\Component\Debug\Exception\FatalErrorException] syntax error, unexpected 'as' (T_AS) Route::...

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