coderello / laravel-shared-data

📦 An easy way to share the data from your backend to the JavaScript.
https://coderello.com/docs/laravel-shared-data/1.0/sharing-data
MIT License
321 stars 22 forks source link

[Enh] Refactor Blade directive setup #22

Closed klimov-paul closed 4 years ago

klimov-paul commented 4 years ago

Blade directive setup has been refactored:

hivokas commented 4 years ago

Thanks, @klimov-paul! Could you add a test please?

klimov-paul commented 4 years ago

Blade directive is already tested here: https://github.com/coderello/laravel-shared-data/blob/1.0/tests/SharedDataTest.php#L296

This PR is just a refactoring.

hivokas commented 4 years ago

I mean a test for a custom blade directive name.

klimov-paul commented 4 years ago

Test has been added.

hivokas commented 4 years ago

Thanks for the contribution!