Home
Categories
How to
Free Online Tools
Home
Categories
How to
Laravel Blade Tutorials
The place where you will find programming tutorials, latest news, guides and all related to Laravel and PHP
General
Blade
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.
Query builder
General
Blade
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.
Laravel @class
Blade directive
Laravel
General
Blade
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.
Blade directive
Service provider
General
Blade
Laravel new Relation methods
Laravel new whereRelation methods helps us clear verbose closures to simple queries on relationships with whereHas
Laravel Eloquent Relation
WhereHas