How set up Global Helpers in Laravel in 3 easy steps.

Step 1

Step 2

"autoload": {
"psr-4": {
"App\\": "app/",
"Database\\Factories\\": "database/factories/",
"Database\\Seeders\\": "database/seeders/"
},
"files": [
"app\\Helpers\\utility_helper.php"
]

},

Step 3

if (! function_exists('notNull')) {
function notNull(mixed $value)
{
return ! is_null($value);
}
}

Troubleshooting

--

--

--

Welcome! I am a senior Laravel developer and here will you find all sorts of information and tutorials around Laravel, PHP, and other web development languages.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Setting Up HA Jenkins On A Kubernetes Cluster Running On GCE

Create High Availability Architecture with AWS CLI

If You Really Want to Understand How Well-Tested Your Code Is, Try Mutation Testing

AWS IAM Audit using Boto3

Where do I see myself after 2 months of the WIT program ?

How to take screenshots in Selenium without coding

CS371p Spring 2022: Week 14

What is new with Google Cloud and C++

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Coding with Pixel Fix

Coding with Pixel Fix

Welcome! I am a senior Laravel developer and here will you find all sorts of information and tutorials around Laravel, PHP, and other web development languages.

More from Medium

Laravel Naming Conventions

How to keep track of Laravel authentication Events in your application

Full text search on laravel

Magic search & filter on Laravel Eloquent with Trait