Merge pull request #207 from BrookeDot/patch-2

Update Flasher Class Parameter Order
This commit is contained in:
Younes ENNAJI
2024-11-09 00:38:24 +01:00
committed by GitHub
+1 -1
View File
@@ -99,7 +99,7 @@ flash()->{{ type }}('{{ message }}');
These four methods — `success()`, `error()`, `warning()`, and `info()` — are shortcuts for the `flash()` method. They let you specify the `type` and `message` in one method call instead of passing them separately to `flash()`. These four methods — `success()`, `error()`, `warning()`, and `info()` — are shortcuts for the `flash()` method. They let you specify the `type` and `message` in one method call instead of passing them separately to `flash()`.
```php ```php
flash()->flash(string $type, string $message, string $title = null, array $options = []) flash()->flash(string $type, string $message, array $options = [], string $title = null)
``` ```
{% assign id = '#/ usage flash' %} {% assign id = '#/ usage flash' %}