Laravel Blade Tutorials
The place where you will find programming tutorials, latest news, guides and all related to Laravel and PHP
How to get Laravel query builder to output SQL
In this short snippet, you will learn how to get the raw SQL string from a query builder in Laravel. To get the raw query you can make use of the 'toSql()' available from the 'QueryBuilder' instance.
How to Use @class Blade Directive in Laravel
Sometimes, the biggest sign that shows that a framework is maturing is when it has multiple ways of doing the same thing. Laravel, being one of these frameworks, is no exception.
Using @route Instead Of route in Laravel Blade
Laravel Blade allows you to define your own custom directives using the directive method. When the Blade compiler encounters the custom directive, it will call the provided callback with the expression that the directive contains.
Laravel new Relation methods
Laravel new whereRelation methods helps us clear verbose closures to simple queries on relationships with whereHas
Laravel Eloquent Relation