ColoredCow / ColoredCow/laravel-mobile-api
Add helper functions in laravel mobile api
Open
- Dominant language
- PHP
- Stars
- 1
- Forks
- 1
- PR merge metrics
- No merged PRs in 30d
Description
let's create a global helper so that we can use it every where.
```
if (!function_exists('isApi')) {
function isApi()
{
$requestSegments = collect(request()->segments());
return $requestSegments->first() == 'api';
}
}
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.