Routes are the entry points to a Laravel application. There are two route files available in Laravel 8 by default. These are web.php and api.php. If required one can create custom route file in Laravel easily. In this article I…
Tag: file
Simplest way to create and include a helper functions file in Laravel 6/7/8/9
Helper functions are time saving tools in any application. Laravel comes with many built-in useful PHP functions which may include Array & Objects functions, String functions, URL functions and many more. Please see the complete list before you decide to…
How to get file extension using PHP
A simple yet powerful approach to get file extension using PHP. We usually need to extract file extension from file name while uploading file so that we could generate new name and rename file to our convenience. We could create…