I have an application where multiple accounts use the same database. To specify what row belongs to...
Hi, So I've setup my route as follows: Route::group(array('prefix' => 'student/{student_id}/'), f...
I want to use multiple models for the same table but each model should return only rows where "...
Hello, Not sure how to phrase this question... hopefully it makes sense. I have a class called "...
I'm getting this error: Call to undefined method Illuminate\Database\Query\Builder::Category() At th...
I'm trying to eager load a list of credits for a recording. The query I want to run is this: SELECT...
Hi everyone, I am currently building a small app that manages school related stuff. I have to build...
Hey guys, I have this form that the user fills out, on successful submit the form saves to the datab...
I have 2 tables which are related with a Many to Many relation and the relation table. (users, items...
I'm having problems where I want empty strings or a zero to be stored as a NULL in the database. Her...
$image = $input['image']; $filename = $image->getClientOriginalName(); $destination = 'upload...
Hello, I have 2 models. One is "developer" and the second is "program". One deve...
Hi, while working with Many To Many Polymorphic relationships, I notice that if we retrieve nested r...
I have an existing database (can't change the structure) for which I need to make a web front end. T...
Hi all, I was wondering how I could do the following. I have a user table with 2 field 'first_name'...
Let's assume we have a catalog. We have base Item model and item types model (Car extends Item, Moto...
Table : photos #id -> primary key #item_id -> foreign_key #title -> string #order -> int...
In controller: public function deletePage() { $pageClass = $this->page->find(Input...
I have created a very large project in laravel with mysql. I have switched by using https://github.c...
Dear friends, How could be possible to use a database table as a connection container in place of us...
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