Support the ongoing development of Laravel.io →

4,311 Threads

posted 9 years ago

cant find User class

I just installed l5 and am trying to run a simple query using $users = User::find(1); But when I run...

0 Likes
3 Replies
Solved

Question about Relationship (belongsTo X hasMany)

Hello, people. I have a problem that is confusing me. I'm working with relationships, but part of th...

0 Likes
0 Replies

Eloquent Full Text Search on Multiple Tables

I am using Laravel 4 and the Eloquent model for a project we are working on. The database conforms t...

0 Likes
1 Replies

Another question regarding performance.

I got this query: SELECT (SELECT GenreDescription FROM Genre WHERE GenreId = Reports.ReportGenreId)...

0 Likes
5 Replies

Problem UTF-8 DBLIB

Hi , I have a problem in my environment : DBLIB + PDO + UTF8 + MSSQL . How to convert charset in &qu...

0 Likes
0 Replies

Custom 500 Page for firstorfail() ModelNotFoundException

Can anybody explain step by step how to setup files to render a custom 500 page after a firstorfail(...

0 Likes
3 Replies
Solved
posted 9 years ago

Using where on morphMany relation

Hi, i have problem with morphMany relation. I would like to find all Persons Travel where Photos Has...

0 Likes
1 Replies

Easy db revisions with Sofa/Revisionable

I want to introduce nice and useful package for DB revisions. It works out of the box with Eloquent...

0 Likes
3 Replies
posted 9 years ago

Array merge

How the array merge is working in laravel?,.. I have two queries the first one is: $products_que...

0 Likes
2 Replies

Laravel Eloquent - nested relationship with constraint from two levels up

Consider the following simplified tables: https://gist.github.com/exnor/cff79953c6dace6c042c Many c...

0 Likes
0 Replies

[L5] Allow CRUD only to user that owns resource. Best way?

Hello, I have User model and several other models that belongsTo User. I have a lot of routes for ch...

0 Likes
3 Replies

hasMany and belongsTo question

I'm able to display all my Hostings, but I would like to also display the name of the company that b...

0 Likes
2 Replies
Solved

Reusing code across similar tables

I am trying to plan out my DB Schema and want to keep it DRY. I plan to have multiple tables for pos...

0 Likes
1 Replies

API with Laravel 4

I created a web application using PHP framework Laravel 4. Now I would like to create an Android app...

0 Likes
1 Replies

Delete does not cascade

In migrations, I create a pivot table Schema::create('system_user', function(Blueprint $table) {...

0 Likes
1 Replies
Solved

If in statements

Hi everyone, a "simple question" maybe it's not possible... I have this query repeated con...

0 Likes
7 Replies
Solved

[Laravel 5][Eloquent ORM] Pivot table from one table result

In all examples I see pivot with tables relationship. Is it possible: I have result from one table [...

0 Likes
0 Replies

Laravel getting tag use count per user with eloquent or DB facade

Laravel 5. I have 3 related tables. **Posts** user_id ... ... **Users** id ... ... **Tags** id nam...

0 Likes
1 Replies
posted 10 years ago

Order by number of relations

Hi, it may be an evident question but i can find the answer in the documentation. who can i order a...

0 Likes
3 Replies
posted 9 years ago

Complex Relationship/Model help, best way to link three or four tables?

Hello, I have a four different tables/models I'm trying to define relationships for and am having tr...

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.