Support the ongoing development of Laravel.io →

4,597 Threads

using alias in a join

i have this join: $mains = Main::join('builds', 'mains.build_id','=','builds.id')->where('builds....

0 Likes
1 Replies

using javascript to set a variabe

i have an form that is set to upload an image and update a database with the image data (if needed)....

0 Likes
2 Replies
Solved

How to get timestamp integer instead of Carbon object

My application has to adapt to an existing database which uses integer timestamps instead of string...

0 Likes
2 Replies
Solved

Select DB connections based on condition

Hi Team, I have an application that uses multiple database servers and each db server has two databa...

0 Likes
0 Replies

Search through relationships

Hi! I have a little problem that I'm not quite sure how to solve it. To simplify, lets say that I ha...

0 Likes
4 Replies
Solved

Dynamic classes from eloquent

Hi everybody, I'm just getting started with Laravel and SOLID development, and I'm having trouble fi...

0 Likes
1 Replies
posted 10 years ago

as I can construct the following sql statement

as I can construct the following sql statement SELECT (first_name || ' ' ||last_name) as name,t1.id...

0 Likes
12 Replies

While using Eloquent relationships, user id is not saved

Hello I'm learning Laravel 4, and I came up to Eloquent relationships. I have two models, user and g...

0 Likes
2 Replies
Solved

Where does those calls come from?

Hi, I installed php-debugbar and this is the output I get. select * from `pages`133μs256KB3000000005...

0 Likes
2 Replies
posted 10 years ago

Laravel 4 PDO Connection Failed

Alright so my PDO connection keeps failing for what seems like no reason. I created a separate site...

0 Likes
4 Replies

Bulk insertions on db table

Hi, I have to insert in a table something like 18000 records. I didn't try to use Eloquent, but usin...

0 Likes
7 Replies
Solved

Intranet help

Hello In my job, we developed 7 years ago an Intranet without a PHP framework. The project has grown...

0 Likes
3 Replies
posted 10 years ago

You can create this query

You can create this query SELECT * FROM users AS t1 LEFT JOIN installs AS t2 ON (t1.id = t2.usuario_...

0 Likes
2 Replies
Solved
posted 10 years ago

Seeder not seeding my table

###Here is my seeder table class class DataClassificationTableSeeder extends Seeder{ //Data Classi...

0 Likes
3 Replies
Solved

one-to-many relationship without actual foreign key in database

I want to mak a one-to-many relationship like in the tutorial. One To Many An example of a one-to-m...

0 Likes
1 Replies
Solved

what time format does "DB::getQueryLog()" return?

I read the "API" and it says pretty much nothing, doesn't give a clue about what DB::getQu...

0 Likes
1 Replies

Handling Unique Short Code Representitives

Lets say I have a list of Status 1 - Pending Submit 2 - Submitted 3 - Extra Images Uploaded 4 - Com...

0 Likes
1 Replies
posted 10 years ago

Why cross-database acces support?

Laraval is awesome in almost every way. The only thing i don't understand. Laravel supports cross-d...

0 Likes
0 Replies

SQL Storing Searchable Meta Data

I am creating a bug tracking tool for mainly personal/in-house usage. BugSnag is kind of the motivat...

0 Likes
6 Replies

What will be the best way to extend Sentry2 user model?

Hello, In my laravel 4 application, I need to add more fields in user table. I made new migration fi...

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

© 2024 Laravel.io - All rights reserved.