outlaws
V2EX  ›  PHP

能不能把 laravel 的辅助函数抽出来用在其他项目中

  •  
  •   outlaws · Aug 24, 2016 · 2982 views
    This topic created in 3577 days ago, the information mentioned may be changed or developed.

    感觉 laravel 的辅助函数对于数组和字符串的操作很实用,能不能提取出来用在其他项目或框架中呢

    5 replies    2016-08-25 14:00:31 +08:00
    keikeizhang
        1
    keikeizhang  
       Aug 24, 2016
    为什么不自己写一个呢
    qiayue
        2
    qiayue  
    PRO
       Aug 24, 2016
    可以,但是其实好多函数都是层层封装的,你要层层深入,最终把几个函数都抽出来,可以组成一个函数
    jerray
        3
    jerray  
       Aug 24, 2016
    AbrahamGreyson
        5
    AbrahamGreyson  
       Aug 25, 2016
    当然可以, Laravel 的每一部分都可以用到其它项目中。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5502 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 46ms · UTC 07:16 · PVG 15:16 · LAX 00:16 · JFK 03:16
    ♥ Do have faith in what you're doing.