Support the ongoing development of Laravel.io →

4,597 Threads

Homestead - Connecting to Postgres

I can connect to the Homestead MySQL database no problem with: vagrant@homestead:~$ mysql -uhomestea...

0 Likes
2 Replies
Solved

Creating and using models

For months, I've been placing all my logic in my controllers. Today, I would like to steer clear of...

0 Likes
1 Replies

checkboxes in form::model

I set up a migration to include a boolean value in my model (using the boolean() method). That trans...

0 Likes
0 Replies

Relationship Query

Is there any place that shows real world examples of Relationship querys and fetching associated dat...

0 Likes
5 Replies
posted 10 years ago

Multiple aggregates in one query

How would I do "SELECT Count(*), Min(some_field), Max(some_field) FROM some_table" in the...

0 Likes
2 Replies
Solved

Returning records using withTrashed()

An Owner has many Cars... And in my blade page I have this... {{{$car->Owner->name}}} And tha...

0 Likes
3 Replies

Trait 'Illuminate\Auth\UserTrait' not found

HI i searched Google but did not find anything about this and i never had this error before in Larav...

0 Likes
0 Replies

Whats the opposite of ->associate() ?

I'm trying to figure out the easiest and most effective way up updating hasMany() and belongsTo() re...

0 Likes
2 Replies

One of my "belongsTo" doesn't work - why?

Hi! Just started using Laravel (4.1.30) for a project at work. So far it's just amazing, totally hoo...

0 Likes
2 Replies
Solved

How do I use foreign keys in my blade template file?

When I use {{ $hotel->userid->username }} in my blade templates, I get this exception. "T...

0 Likes
1 Replies

Migration help

I am converting a site with 50+ tables, some have 35+ columns and setting up the controller / views...

0 Likes
2 Replies

How to use foreign keys in Eloqeunt?

How do I go about using foreign keys in eloquent. I am building a forum application, just so I can g...

0 Likes
2 Replies
Solved

Using with() method

Hi, this is my first post. I'm pretty new on Laravel and I've a question about some query I've to do...

0 Likes
2 Replies

id empty after creating new model

Hello! I'm creating new model using the mass assignment: $item = Item::create($itemAttributes); dd($...

0 Likes
1 Replies
Solved

Aggregated count grouped by dates(days)

Hi guys, I have a table with records created per specific action, I am trying to count records per d...

0 Likes
3 Replies
Solved

Table Column Schema to store array or object

What is the schema for the database table to store Array or stdObject in a column ? When I use ->...

0 Likes
5 Replies
Solved
posted 10 years ago

[Explanation Required] Adding new column with Foreign key

Hello, I was trying to add a column / foreign key to the table in the following manner : public func...

0 Likes
0 Replies

comment ordering problem

Hi all, I have 2 tables: posts and comments. Each post has many comments (one-to-many relationship)....

0 Likes
3 Replies

Set Session MySQL variables when connection is created

I need to call SET SESSION wait_timeout=xx on my Eloquent DB connections after they are (lazily) cre...

0 Likes
1 Replies

I need table to drag&drop&sort row plugin

hello I need table to drag&drop&sort row plugin and save the update tabe in database

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