Laravel directivies which give you more functionality by using just short line of code.
You can install the package via composer:
composer require "dev-craft/lara-directives":"dev-master"
Where Object should be the variable name and the property should be its property.
e.g lets say i have
$user variable and i want to show the
username from it. it will write below code.
It will display the value of given object's property, only if its value is not null.
If the value is null or empty it will return 'N/A'
it will disaply the time as default date format
created_at property and i want to display it i will write below code.
Custom time format using @time()
@time(object.property | H:i:s)
Its also supporting nested properties so you will use that too.
It will return the human readable time from given datetime. e.g
1 minute ago