Assume i am going to fetch country list. $country = Country::get(); foreach($country as value){ ec...
I am in the planning stage of undertaking a database migration where the two databases (one MySQL, o...
Hi, I want to create and save model, something like this: $page = new \Page; $page->fill(\Input::...
Hi, is there a difference between $go = Project::findOrFail($id); $go->delete(); and Project::de...
#The goal# What I'm trying to do is generate a new collection with all the Consultations ordered by...
I read everywhere that in model validation is best practice, but I don't know how to handle a failed...
Hello guys, how can I get last 10 used posts tags? http://help.laravel.io/bd1f15c318d5358b745f27afe3...
Hello! Is it possible to know which seeds ar allready seeded and which are new automatically with ar...
Hello, I have some data displayed in table...lets asume like this: 1 - Title1 - Edit, Delete 2 - Tit...
$this->model->find($id)->tags()->get()->toJson(); Not return columns the table tags I...
Hi, I have controller filters like those: <?php $stats = Stats::all(); $stats_today = $stats-...
I have created 2 tables and UnderFiftyDollars will contain all items under $50 to show on a promotio...
Hi everyone, http://laravel.io/bin/kYVa9 In the above snippet, you may recoil in horror when you see...
So I have scope with following code public function scopeSortable( $query ) { if(Input::has(...
I have this problem where laravel ModelNotFound exeption handler catches all exeptions not only rele...
I'm trying make a function that returns false if there is no inventory available. I need it to searc...
This is my controller: public function prontuario_index(){ $Prontuarios = Prontuarios::get(15);...
I'm building a REST API for a large data set, and running into a performance issue I'm not sure how...
Hi, i call this somewhere in the CustomerController(): $results = CustomerModel::getCustomers(); Th...
Hello, I'm hoping I can get help with a dilema I ran into. I hope it's something simple. I have a me...
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