Hello. I got Zizaco/Entrast package installed. https://github.com/Zizaco/entrust/tree/1.0 I create a...
So given the following schema: users id (int) some_group_id (int) some_field (string) so...
Is there a better way to write this up? <?php // Composer: "fzaninotto/faker": "v...
Even if it included some Raw elements. :) Select concat(places.path, child_places.id, '/') as p...
I have a datetime attribute that I want to convert to Carbon and persist it to mysql as a Carbon obj...
User Model function comments(){ return $this->hasMany('Comment'); } function posts(){...
Hey guys, Since on my old topic (http://forumsarchive.laravel.io/viewtopic.php?id=10766) the links a...
Hello everyone, I made a code which i used to check if a table exists or not. If not the code would...
I have a polymorphic relationship set up between the comments and the video / images tables. Now i w...
Ahoi, want to use static methods and public method (of Instance) from a Model. have a controller : c...
how to call controller method to model? OrderController: public function mailInvoice($id) { //...
Hi, I'm using Eloquent ORM outside of laravel. Its with SLIM Framework. I'm trying to control the nu...
Hello, I am looking to improve my code for better performance, how would you optimize this code: pub...
Hi, I have a small question, I have a website where they are teachers who can add students. Students...
I have this code: $sqlInsert = array( array('id'=>1, 'temp'=>1), array('id'=>2, 'te...
I have 2 tables: User [ id, name, address_id, active ] Address [ line1, line2, city, county, postcod...
I have a questions table, and a tags table. I want to fetch all questions from tags of a given quest...
Hi all, I was trying to add gravatars to all my users, so i created the function getImageAttribute()...
Hi all, Due to the lack of "WHERE IN" for joins, I'm trying to add a bracketed 'OR WHERE'...
users : id, username, password images : id, user_id, isprofile (0,1) and so on Image model publi...
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