Skip to content
This repository has been archived by the owner on Jun 12, 2018. It is now read-only.

Commit

Permalink
L5.6
Browse files Browse the repository at this point in the history
  • Loading branch information
balping committed Feb 8, 2018
1 parent b23c74f commit 811309b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
This Laravel package lets you declare functions inside blade templates. After installing it, you'll
never need to use partials as functions.

This package is compatible with Laravel 5.1, 5.2, 5.3, 5.4 and 5.5
This package is compatible with Laravel 5.1, 5.2, 5.3, 5.4, 5.5 and 5.6

In Laravel 5.4 [components](https://laravel.com/docs/5.4/blade#components-and-slots) were introduced. There is an overlap between the problems componenets and this package try to solve. So from 5.4 you might want to consider using componenets instead. They are different though and this package might still provide a cleaner and easier solution in some cases.

Expand All @@ -14,6 +14,8 @@ Run this from the terminal:
composer require balping/laravel-blade-function
```

If you are using Laravel >=5.5, this step is unnecessary, thanks to [package auto-discovery](https://laravel.com/docs/packages#package-discovery).

Add this line to the `providers` array in `config/app.php`:

```php
Expand Down
10 changes: 9 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"keywords": ["laravel", "blade", "template", "function", "directive"],
"authors": [
{
"name": "Balázs Kovács"
"name": "Balázs Dura-Kovács"
}
],
"require": {
Expand All @@ -17,5 +17,13 @@
"psr-4": {
"Balping\\BladeFunction\\": "src/"
}
},

"extra": {
"laravel": {
"providers": [
"Balping\\BladeFunction\\BladeFunctionServiceProvider"
]
}
}
}

0 comments on commit 811309b

Please sign in to comment.