Support the ongoing development of Laravel.io →

4,311 Threads

Custom Soft Delete Column

Hi guys, I'm in the process of rewriting a REST service, and I've decided to go with Slim Framework...

0 Likes
2 Replies

Can someone explain me use between fillable guarded and hidden in eloquent?

I don't quite undestand the explanations on laravel doc's http://laravel.com/docs/4.2/eloquent betwe...

quyle92 liked this thread

1 Likes
1 Replies

how get data from different tables?

Hello have 4 tables users,agents,users_agents,mt4_users, I am create join between users_agents,mt4...

0 Likes
0 Replies

[Eloquent] Select all and tell if relation exists

Hi guys, I need to select all models and see if relation exists. Here's an example: Let's say I have...

0 Likes
8 Replies
posted 9 years ago

Eloquent Relationships

I'm having trouble understanding the Eloquent relationships described here: http://laravel.com/docs/...

0 Likes
3 Replies

Call to a member function getFullName() on a non-object

Hi guys, I have a rather weird problem. Here is a simple function I wrote: $team = ProTeam::find($t...

0 Likes
2 Replies
Solved

Getting Laravel Stapler to work on L5

So, I'm having some troubles installing Laravel Stapler on L5. The developer updated the dev branch...

0 Likes
0 Replies

Morphable with HasOne - getting the right info

Hi, I have a User model, and polymorphic models to define different user types - eg UserAdmin One of...

0 Likes
2 Replies

Laravel pagination return empty result set

Hi everyone, This is my first post on laravel.io :) I'm getting an issue using the paginate() method...

0 Likes
4 Replies
Solved
posted 9 years ago

Eager loading with aggregate functions/relations

Hey. I have pretty standart Post - Rating Models. Post Table: id, text, created_at, updated_at Ratin...

0 Likes
1 Replies
Solved

Many-To-Many Relationship not working across databases

I'm trying to integrate a new Laravel app with an legacy application. That's why I'm in need to use...

0 Likes
6 Replies
Solved

Database Table relationship

I have 4 tables namely - users, user_projects, project_rooms and user_wishlists their table columns...

0 Likes
0 Replies

Best way to do lots of query calculations?

I am creating a finance logging system for some club managers, it logs things like payments, attenda...

0 Likes
2 Replies

How to get inserted id of pivot when attach()

Hey. I need to get the ID of pivot when inserting related items in Many to Many. Ex. $pivot_id = $pe...

0 Likes
2 Replies
Solved
posted 9 years ago

Magic methods in Eloquent

Hey guys, is it possible to implement my own __call() method in Eloquent models? I created users per...

0 Likes
2 Replies
Solved

Having issue while trying to use model route binding

By using this code I'm trying to return the post from posts table which has the same id by {post}. R...

0 Likes
0 Replies

Cant access to Models From Views in Package

Hi there I'm working in a package , and for some reason i cant access to models methods from View, f...

0 Likes
2 Replies
posted 9 years ago

$morphClass not used by morphTo()?

So I have MyApp\Posts\Post MyApp\Videos\Video In each I declare a $morphClass of 'Post' and 'Video'...

0 Likes
4 Replies

Problem with routes when passing a variable from a Modal to a web page.

Hi. I'm having an issue when passign a variable from a Modal toa web page. The variable it's not sho...

0 Likes
1 Replies

Repository Responses

Hi everyone, What is your approach for repository methods responses ? returning Eloquent models or...

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.