Support the ongoing development of Laravel.io →

4,602 Threads

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

Eloquent Saving and Rollback or Batch Save

Hi, I currently creating this somewhat complicated abstraction layer. is it possible to cancel or ro...

0 Likes
0 Replies

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

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

In mysql.log only PREPARE, why?

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

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.

© 2024 Laravel.io - All rights reserved.