| Package Data | |
|---|---|
| Maintainer Username: | awkwardideas |
| Maintainer Contact: | chad@awkwardideas.com (Chad Haney) |
| Package Create Date: | 2017-03-17 |
| Package Last Update: | 2017-03-17 |
| Language: | PHP |
| License: | MIT |
| Last Refreshed: | 2025-11-18 03:01:30 |
| Package Statistics | |
|---|---|
| Total Downloads: | 45 |
| Monthly Downloads: | 0 |
| Daily Downloads: | 0 |
| Total Stars: | 0 |
| Total Watchers: | 1 |
| Total Forks: | 0 |
| Total Open Issues: | 0 |
$ composer require awkwardideas/parrot
Under Package Service Providers Add
AwkwardIdeas\Parrot\ParrotServiceProvider::class,
Under Facades/Class Aliases Add
'Parrot' => AwkwardIdeas\Parrot\Facades\Parrot::class,
@parrot('view.name', ['some' => "", 'data'=>"", 'parrotClass'=>"CustomClass", 'parrotID'=>"templateID"])
@parrotif('view.name', ['some' => ""])
Similar to @includeif blade directive
@parrotClass
If the template is called with parrot, it will show the $parrotClass variable. A default class of parrotTemplate is output if a custom class is not provided.
@parrotID
If the template is called with parrot, it will show the $parrotID variable.
@onParrot
Starts an if case for when parrot is being used. If not being parroted, the template wont render the contained content. An @else may be used with @onParrot
@endOnParrot
Ends the if case for @onParrot
@noParrot
Starts an if case for when the template is being render without parrot. If being parroted, the template wont render the contained content. An @else may be used with @noParrot
@endNoParrot
Ends the if case for @endNoParrot