search

Home  >  Q&A  >  body text

How/where is it better to customize the public functions used in Laravel5 blade views?

larvel4.2 has libraries folder, you can customize functions and preload them.
How can larvel5 be implemented more elegantly?

PHPzPHPz2812 days ago741

reply all(2)I'll reply

  • 黄舟

    黄舟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

    reply
    0
  • 天蓬老师

    天蓬老师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.

    reply
    0
  • Cancelreply