My directory structure is CBridge->app->Models->Companies In companies.php I have below cod...
Hi. I am trying to retrieve data from a table called users. The data is not showing,though. How do I...
Hi I am using Laravel 5.1 and vtalbot/markdown. I have a works table and inside there is description...
Hey all. So, I am three tables that are interconnected. Character Has primary key profileId Characte...
Dear reader, I am building a simple group chat application. The architecture is like this: User(Admi...
Hi All, it's me again, writing new thread to ask for some help.. i have a model, which i called &quo...
This throws a 500 server error. I don't even get a laravel error page. As soon as I pass in the % fo...
Hi there, I want to show subcategories in the system tree. But I could not. Can you help me in direc...
I have set up a Polymorphic relationship as follows: class Charge extends Model { public functi...
Suppose you have a many-to-many relation between two models, let's say Post and Tag, and you want to...
I've been using this: $query = $this->job->where('user_id', \Auth::user()->id)->get();...
Hi I have a discount table that starts from 0-100. The second entry is 0.5. This is how is seed the...
singers table <?php use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrati...
Hello, I'm using the DB::getQueryLog() to create a logging page in my application but for some reaso...
Hi there, I get stuck at building the models and relationships for my app. I need: bond model user...
ok so i have a country table with id, country e.g. UK => United Kingdom.. so id is a string...
Before I submit a PR for this, I am seeking opinions. I feel that the Model class (Illuminate\Databa...
I would like to mock model's scope method, is it possible? Here is the scenario: Order model: public...
Hello, I have two models Person class Person extends Model { public function emails()...
I have ran into a problem with regards to standalone Eloquent. I have a query like this: $data = Tes...
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