larvel4.2 has libraries folder, you can customize functions and preload them.
How can larvel5 be implemented more elegantly?
黄舟2017-05-16 16:57:52
Zhanlou to see the answer, I am learning laravel;
http://wenda.golaravel.com/question/718
You can take a look at this
天蓬老师2017-05-16 16:57:52
Just find a file to write the function, and composer imports the file.
Or customize a helper class, make the method static, and call it using the namespace.