Hi, i call this somewhere in the CustomerController(): $results = CustomerModel::getCustomers(); Th...
I am new to laravel, please guide me in fetching data from database, i am able to show the data on t...
Hello, I'm hoping I can get help with a dilema I ran into. I hope it's something simple. I have a me...
Hi all, I have the following query: $posts = Post::where('category_id', '=', $category->id)...
Hello guys I have this problem. I have a Form that contains several pages (think a multiple step pol...
Hi, How do i list the table values which are stored on today date using the created at
I feel this may be a simple question; but I can't, for the life of me, figure this out. I'm relative...
I am experimenting with using Laravel for a new project and got stuck at the model definition stage....
I'm trying to deploy my app on google cloud but having some trouble. In my app.yaml i have env_v...
I am saving created_at and updated_at as Unix timestamp in DB. I have overridden my getDateFormat()...
Hey guys, I'm having a small problem regarding the combination of multiple eloquent based libraries....
Ok so I have a certifications table which can have many employees or materials. Also the employees a...
Is there a way to create migration files for existing tables quickly?
Should this work to see if a row does or doesn't exist? $exists = DB::table('roles')->where('nam...
Hi. I have a user with countries relationship. (hasMany) user_id 1 country_id 1 user_id 1 country_i...
Hello all, I've been struggling with a strange behaviour when trying to load partial information fro...
The setup. I have Posts items that users can favourite. I show the count of how many people have fav...
Hi everyone! I try this code: $urls = Url::with(['user' => function($query){ /** @var $query \I...
My DB is like 2000 records, the info is encrypted, using Crypt in my model... /* NAME*/ public func...
I have an existing blog application, and I would like to add a way to have different types of blog p...
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