Hi, is there any way to add custom methods to eloquent models? e.g.: class User extends Eloquent {...
I am struggling to understand how laravel works and I have a very difficult time with it Model - Use...
Hi again. I have 3 tabs in a page. I have 3 queries and thus get the results and make 3 different pa...
Hi there, I have a site which needs to go live today, and there is a problem with Eloquent, and the...
Hello, one of the requirements on the application I am developing is to have it to use an arbitrary...
I have a table with a row 'comments'. This is 'opmerkingen' in dutch. Every row can contain 1 commen...
Hi, I've been looking for examples for a while and found out that the docs are lacking about this. H...
DB::table('users') ->join('contacts', function($join) { $join->on('users.id', '=', 'contacts.u...
I have two models with relationship: City and Events. In the controller i have this: $cities = City:...
Hi there, I would like to insert a post and its images with laravels ORM. Posts title tekst Images...
Hi all, I'm creating a drop down list that gets populated using data from a database. Everything wor...
I have a form with a 'name' textfield. When i press send laravel checks if the username exists. If s...
I'm trying to work with SimplePie to pull numerous RSS feeds (which is working well); however rather...
Hello. I'm looking for a way to create dynamic appends to a model. right now i have something like p...
I did a simple query like: $query = "sdsad'sa"; Spot::where('title', 'like', '%'.$query.'%...
Im build my app localy, and Im afraid after Ill get some traffic in to it it will simply crash. and...
Hi. I perform $a = Items::where('code', '=', $code); In the code column there are various entries, u...
I have this in my car.php model public function bySortOrder() { return $this->orderBy('so...
I'm trying to get a Post inside a Session, but between Post and Session I have a Category Model. Eac...
Hi Can we do this query in Eloquent $tagString = implode (',', $tags); return DB::select (DB...
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