Support the ongoing development of Laravel.io →

4,311 Threads

Query Builder - removed "where clause" won't remove related bindings

This problem is slightly related to my previous post but NOT identical: http://laravel.io/forum/06-1...

0 Likes
1 Replies
Solved

are there way to use "having In" statement;

i'm trying to run this code $AdvanceRequests=new AdvanceRequest(); $AdvanceRequests= $AdvanceReque...

0 Likes
0 Replies

92fiveapp can't save projects and Why can't create new model

Hi ,Guys Last night i was working on this project. Actually, am new bee to larvarel but , thanks to...

0 Likes
0 Replies

Looking for an Eloquent query to pull records by date range

I have a generic user table, with created_at and updated_at timestamp columns. I'm curious if there...

0 Likes
1 Replies

Model Can't Catch PUT Request

Hi guys, As seen on the subject below, my Model Can't Catch the PUT Request,.. Here is the example o...

0 Likes
3 Replies
Solved
posted 10 years ago

Eager loading issue

Here are the tables, and their relations that I have already setup batch (has many 'probability') t...

0 Likes
0 Replies

Using Relationships correctly - Team, User and Relation table

Hello, i have three database tables: User, Team and Relation. A user can be a member in multiple tea...

0 Likes
0 Replies

Multi-tenancy - One database multiple tables

I want to create a multi tenancy application using Laravel. I am using the one database, multiple te...

0 Likes
1 Replies

Query Builder - anonymous function question

Hi there. Here is my code: $personelList = App::make('MedPersonel') ->with( array('servicePri...

0 Likes
0 Replies

Usage of namespaces with Laravel models.

I found namespaces usage of Laravel models being non-orthogonal. When you create relation, namespace...

0 Likes
2 Replies

Problems inserting record using Eloquent, Call to undefined method Illuminate\Database\Eloquent\Collection::save()

http://laravel.io/bin/Qd4Ma I can't figure out what is wrong about the db relationships that I have...

0 Likes
1 Replies
posted 10 years ago

Model deleting event does not work

<?php use Illuminate\Auth\UserTrait; use Illuminate\Auth\UserInterface; use Illuminate\Auth\Remi...

0 Likes
3 Replies

Naming Convention For Modal And Database Table

Hello All I am confused with naming convention in laravel for model name and database table name.I h...

0 Likes
0 Replies
posted 10 years ago

Extending A Common Model

I have several models which share a similar schema in the database, is there a way I can create a pa...

0 Likes
4 Replies
Solved

Form Model with Child table

Hey there, I would like to know, how can I bind a form to a model with another table. let's say for...

0 Likes
1 Replies

Eloquent chain relations

Hi all, I have tables Table Fields users id posts id, user_id, status_id status...

0 Likes
2 Replies
Solved
posted 10 years ago

Reach of Eloquent Model "touch"

Having a ancestry tree of more than 2 nodes (e.g. Great Grandparent, Grandparent, Parent, Child) is...

0 Likes
0 Replies
posted 10 years ago

SQL Join/LeftJoin Statements

I'm trying to join two queries with this statement: $item = Category::where('type', $item)...

0 Likes
3 Replies

Should you use models/repositories in Migrations?

Is it considered acceptable practice to use models in migrations? I've seen many code snippets where...

0 Likes
1 Replies

condition on belongsToMany

can i get data in single query ? $author = Author::where('id', '=', $authorId) ->where('salt', '=...

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.