Looking to hire Laravel developers? Try LaraJobs

for-laravel maintained by htsl

Description
Laravel service provider of Htsl.php
Author
Last update
2016/11/25 05:19 (v0.x-dev)
License
Links
Downloads
64

Comments
comments powered by Disqus

Htsl-laravel

Laravel service provider of Htsl.php

Usage

I. Install,

composer require htsl/htsl:@dev htsl/for-laravel:@dev

II. Then add the provider to your autoloaded service provider list in your config/app.php.

Htsl\ForLaravel\HtslServiceProvider::class,

III. Publish the vendor.

./artisan vendor:publish

IV. Create views with extension .htsl, and enjoy the HTSL!

more: The vender:publish command create two files: a. config/htsl.php b. app/Htsl/TExtension.php

With config/htsl.php editing, you can change the way Htsl.php works, even add new feature into. With adding method into app/Htsl/TExtension.php, you can add the method to the $this in the views.