Hi im trying to query my tasks table. A little background information on the tables and how they are...
Hi. I am trying to do something like this : $name = Input::get('name'); $keywords = explode(' ', $na...
Hi... maybe it's a newbie question... these are my first steps with Laravel.. suppose I have in Post...
I'm currently building a REST API with laravel. I'm trying to implement filtering of results on a ro...
I have a model called 'Charges' which stores charges made by someone. I want to sum all the charges...
Hello, is there a native way to determine if a model supports soft deleting? Something like: User::u...
I just can't get this to work: Route::model('mymodel', 'Mymodel'); Route::get('/test/{mymodel}/{view...
I want to check if people are friends. I want to check if in a row both the authenticated user exist...
Can someone give me an example of how to save elements with this relationship? Currently I have Prod...
Hi, I want to have sql query like this: SELECT * FROM "public".user inner join ( SELE...
Hey folks, There are times when heavy model customization is required, and I want to access data wit...
I have a problem with paginate() with hasmany(). I have 2 tables. Categories and posts. I showing po...
I have a table named attendance and another named students_attendance. I add an attendance record to...
i've been able to construct a join and it works: $projects = Main::join('builds', 'mains.build_id',...
Hi, how I hidden column on many to many relationships? Square.php public function sitesquares() { //...
Hi, I am trying to create a beautiful API. Lets assume we have 2 tables, relationship one-to-many (a...
There are two ways to create new record in laravel $model = new MyModel; $model->field1 = 'value1...
Hi guys! I have a posts table and a post may have one media. It can be a video or a gallery. This is...
Hi, I have a boolean column in table. I have also added that field in $fillable in modal class. When...
I was wondering if there is any good way to treat table data as form input data. That's probably cle...
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.