How to use laravel's custom public function?

01-28-2024

background

Accustomed to using ThinkPHP framework, there is a public method class that will be much faster in code writing, so it is necessary to configure it here.

Test framework: Laravel 5.5

Step guidance

1. Create functions.php

Create a new file functions.php under app/Helpers/ (the directory can come by yourself), and add the following code internally:

Copyright Description:No reproduction without permission。

Knowledge sharing community for developers。

Let more developers benefit from it。

Help developers share knowledge through the Internet。

Follow us