Support the ongoing development of Laravel.io →

4,606 Threads

4.1 - Database Sessions - CSRF issue

I am using Laravel 4.1.30 (employer is stuck on php 5.3). I am new to this so please be kind ;-) Th...

0 Likes
0 Replies

MySQL default credentials and database

I have setup Laravel and trying to run the artisan migrate command however I am getting the error [P...

0 Likes
3 Replies
Solved

Nested Select

Hey, not sure how this is done using Query Builder? I want to do something like this: getDetails($id...

0 Likes
1 Replies

Return Query as JSON

When calling the following select how do you return it as JSON $users = DB::table('users')->g...

0 Likes
4 Replies

Accessors in where clause.

Hello, I have a table which contains a datetime field like this: (2014-07-30 16:54:12) That table de...

0 Likes
2 Replies

Schema Builder: Check Constraints

Is there a way to define check constraint clauses within schema builder? Thanks!

0 Likes
0 Replies

NotFoundHttpException

I am using laravel 4.. Receiving error "Symfony \ Component \ HttpKernel \ Exception \ NotFound...

0 Likes
1 Replies

DB::Table query returns array

I am doing a simple SQL statement $userExists = DB::table('users')->where('email','=', $email)-&g...

0 Likes
2 Replies

session table created in the wrong database

Hi, in my laravel homestead server i have 2 laravel installation in 2 different folders and a Databs...

0 Likes
0 Replies
posted 10 years ago

Calculate age from date mysql in query builder

Hi guys i search in forum but not find a solution for this. I need calculate age of a person from da...

0 Likes
2 Replies
Solved

Laravel 4 with forge, environment variables issue

I'm having trouble using forge and environment variables. When I use getenv('DB_NAME') and so furthe...

0 Likes
7 Replies
Solved

Eloquent relations

I have tables: Users, Pages, Posts [ One user may have many pages and posts ] User table structure '...

0 Likes
3 Replies

Complex Queries and models

Hey, I'm new to Laravel but I've done quite a bit of searching and could not find any clear solution...

0 Likes
3 Replies
posted 10 years ago

Updating unique slugs

I'm using cviebrock/eloquent-sluggable to make some nice urls. Now I want to update them to new ones...

0 Likes
2 Replies

Planning and implementing a prototype

This question is mainly to wrap my head around things. I'd just like to know how others go about dev...

0 Likes
0 Replies

Inserting a non-escaped backslash character into MSSQL with Eloquent

I built a tool that creates usernames and a custom-encrypted password and inserts them into a MSSQL...

0 Likes
1 Replies
posted 10 years ago

Laravel and clustered index

Hey, I am developing an application and would now like to move it to my staging server. For the data...

0 Likes
3 Replies
Solved

Relationship and where statement Eager loading?

Hi All, Im working on a streaming project and i'm just starting to learn laravel. I do have a proble...

0 Likes
0 Replies

Optimize Eloquent query for retrieval of min and max value of relation

Hi there, I've a question regarding the retrieval of a minimum and a maximum value of a field in a r...

0 Likes
1 Replies

Save one to many relations without dublicates

Hello. I have One To Many relation ( One user with many pages ) i'm inserting user pages like this:...

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