I have defined a Model class named Support, which abstracts the "supports" table of my DB....
I am interested in how to create that closure-table model?
Here's an overview of my schema. Pardon the rotation. I'm trying to establish a Polymorphic Relatio...
I create a model and a migration in Laravel 4 and add some variables in the migrations and in the mo...
Or any package has used closure table package?
I've just asked this over on StackOverflow http://stackoverflow.com/q/24490324/15531 but I might get...
Hi! I have a form where you edit data, submit to save it, and then return to the same edit view agai...
Hello, I know this question is a little bit vague, but I need to implement the ability to add commen...
Hi guys! I'm building a website for a client where there is a catalogue/e-commerce section and I've...
I have created model so that users can be friends. I have table user_friends where user_id and frien...
Hi, I'm using the Sentry package how can manage this setup public function setUpDb() { A...
I would simply like to run such query: select * from `users` where SUBSTRING_INDEX(`email`, '@' ,-1)...
I have 2 models in my app, 'User' & 'MedicineType' (each User belongs to one MedicineType). I ma...
I have a many-to-many relationship between my "resources" and "category" tables,...
I need help in the make of the Relationships between him and User model
I have 2 models, Posts and Users. What's the best way to display all the posts and users from databa...
Hello! I'm trying to save part of a form data to a pivot table. This works fine while saving, but I'...
Trying to create a simple input method. My DB table (comments) contains an increment "id",...
I have : $data = Page::find($page_id); return View::make('pages.slider', array( 'page' => $data,...
I need to establish a T-shaped relationship between three models. Here's my current schema: users...
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