Skip to content

Commit

Permalink
add more helpers for php
Browse files Browse the repository at this point in the history
  • Loading branch information
AbdelrhmanSaid committed Aug 21, 2024
1 parent 3cad67f commit d842889
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion docs/utilities/php-helpers.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ $settings = setting();

This will return an array of all the settings.

## The `app_name` Helper

Work in progress...

## The `route_allowed` Helper

`route_allowed` helper is used to check if the current user has access to a route. The helper accepts the route name as the only argument.
Expand Down Expand Up @@ -109,4 +113,12 @@ $items = collect_ellipsis([1, 2, 3, 4, 5, 6, 7, 8, 9, 10], 5);

// Output: 1, 2, 3, 4, 5...
echo $items->implode(', ');
```
```

## The `format_phone` Helper

Work in progress...

## The `back_or_route` Helper

Work in progress...

0 comments on commit d842889

Please sign in to comment.