Image for post
Image for post

Always I hated to write some helper functions and some PHP Pure codes in Laravel Blade and after a while, I decided to write a Laravel package to create an easier Blade.

This package has some directive which can help you to write a Blade with more directive.

With the EasyBlade package, You don’t need to write more PHP Pure code and after installing this package You will be able to write a better and more understandable Blade (view).

Let’s see some directives of this package.

  • The first directive is @route :
//Before : {{ route(‘home’) }}//After : @route(‘home’)

It does the same thing as the route helper function in Laravel in you can pass a route name to this directive as the first parameter and it will return the full address of the route. …

About

Reza Amini

A young full-stack Developer who loves Laravel and reading.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store