How to know Laravel version and where is it defined?

后端 未结 10 1129
陌清茗
陌清茗 2021-01-30 01:50

How to know Laravel version and where is it defined?

Is Laravel version is defined inside my application directory or somewhere in global server side directory?

10条回答
  •  感情败类
    2021-01-30 02:25

    If you want to know the user version in your code, then you can use using app() helper function

    app()->version();
    

    It is defined in this file ../src/Illuminate/Foundation/Application.php

    Hope it will help :)

提交回复
热议问题