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...
Hello, one of the requirements on the application I am developing is to have it to use an arbitrary...
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...
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'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...
Hi Guys, I have a query which it's toSql result is: select * from `jobs` left join `locations` on `j...
Hi i was checking my develop and i saw something wrong, the develop works apparently fine but just w...
I have two tables products (model: Products) product_common_auction (model: ProductCommonAuction...
I am running the below Controller method which gets data from a specific Campaign table by campaign_...
table data id name type 1 Plain PATTERN 2 Strip PATTERN 3 Checker PATTERN 7 Oxford FABRIC 8 Twill FA...
Hello Artisans! I'm working on a project that is quite complex and I'm trying to find the best solut...
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