Just a quick one, i'm struggling to do relationships correctly.. I have 2 tables 'users' and 'files'...
here is what I have CONTRACTOR and BID table class Contractor extends Eloquent { public function bid...
I have an Org model and a Tag model. I want to associate tags with organizations. My database tables...
Hi, I am having trouble with populating a dropdown with values from a relationship. The code below w...
how to retrieve data from database using table formatting
$from = Att::Find(Input::get('pos')); $to = Att::Find(Input::get('to'));...
Hi all, I have setup a repository to create a new resident. <?php namespace Crescent\Repos;...
How do I write a eloquent on getting specific fields or columns from the table? I have tried below,...
Hi .. new to Laravel here .. and learning Eloquent ORM. I have a jobs table. I have a Job.php model,...
Hey, is it possible to use eloquent relationships with another external database connection? Example...
I have a database table from which I'd like to pull a single row each day. Unfortunately, I need to...
I have a Model object that uses Model Events to manage some data, like the custom primary key. When...
Hi! For a while now (I think probably since the update to Laravel 4.1) I sometimes get the Error Exc...
I have 2 queries and I want to check if values of one queries exists in array of other query. I have...
insert data from form to table but the data inserted row empty what the problem?
I have 3 tables: posts, comments, and users. One post has many comments (one to many relation.) Ever...
Would you write a query like that? Or would you prefer to divide it somehow? Is it ok for that long...
I have the following model: class ProjectTwitterStatus extends Eloquent { protected $table = 'proj...
Hi, i have 3 models User, Blog and Blogcomment. User <?php use Illuminate\Auth\UserInterface; us...
Hello, I'm a newbie with the Laravel framework. Before I had build my old website in simply PHP with...
Solutions given in the past year. Excluding solutions from thread authors.
Select a tag below to filter the results
The Laravel portal for problem solving, knowledge sharing and community building.
The community