Short: Is there a way to generate a CSRF token in the controller (not in a view)? Long: I have a web...
I've got a model Foo with fillable set, and a request that's been validated, so in my controller I'd...
I'm using a form request for validation and I need to access the errors message bag in the controlle...
I have a simple one-to-many relationship, like order to line items. I'm building a search form where...
I need to build a model that executes a query like: select * from foo right join foo_pivot on foo_pi...
Controller class FooController extends BaseController{ public function bar($id){ $bar = Bar($i...
But say for argument sake, I have a controller with a method foo($id). In one part of the applicatio...
The Laravel portal for problem solving, knowledge sharing and community building.