Laravel Blade logoLaravel Blade logo
HomeCategories
HomeCategories

Laravel Blade Tutorials

The place where you will find programming tutorials, latest news, guides and all related to Laravel and PHP

#title

GeneralBlade

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

#title

GeneralBlade

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

#title

GeneralBlade

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

#title

GeneralBlade

Laravel new Relation methods

Laravel new whereRelation methods helps us clear verbose closures to simple queries on relationships with whereHas

Laravel Eloquent Relation

WhereHas

Footer

© 2022 Laravel Blade, Inc. All rights reserved.