Facebook Twitter Instagram
    TecAdmin
    • Home
    • FeedBack
    • Submit Article
    • About Us
    Facebook Twitter Instagram
    TecAdmin
    You are at:Home»PHP Framework»How to Check Laravel Version by CLI and File

    How to Check Laravel Version by CLI and File

    By RahulMarch 1, 20232 Mins Read

    Laravel is an popular framework built on PHP programming language. You can find Laravel installation tutorials here. In this tutorial, you will learn options to find version of preinstalled Laravel applications.

    Advertisement

    There are two ways available to find the version of the Laravel application installed on any system. You can either find it by running a command. If you face any issue with the command line, you can check the Laravel version in the files.

    1. Command to find Laravel Version

    Artisan is a powerful command-line interface included with Laravel. Open the command line terminal on your system. Navigate to your Laravel application directory. Then execute the following PHP artisan command to check the Laravel version.

    php artisan --version
    
    Output:
    Laravel Framework 7.17.2

    The above output shows that you are running Laravel Framework 7.17.2.

    2. Check Laravel Version in File

    Sometimes you may not have terminal access to the server-hosted Laravel applications. You may not much familiar with the command-line interface. In that case, you can simply view the Laravel version in the following file. WHM/cPanel users can use file managers to access files.

    First, navigate to the Laravel web root directory and open the below file.

    vim ./vendor/laravel/framework/src/Illuminate/Foundation/Application.php
    

    Then search for the string “VERSION”, which contains the version of the Laravel application.

    how to check laravel version from file

    Conclusion

    Checking the Laravel version is a simple process that can be done either through the CLI or by checking the “Application.php” file. By keeping track of the Laravel version, developers can ensure that they are working with the latest updates and features of the framework. We hope this tutorial has been helpful in understanding how to check the Laravel version, and it will assist you in your future development projects.

    Laravel version
    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email WhatsApp

    Related Posts

    How to enable debug mode in Laravel for specific environments

    Running Laravel Queue Worker as a Systemd Service

    Configuring Nginx for Laravel on Ubuntu & Debian

    View 6 Comments

    6 Comments

    1. Falade on February 16, 2020 8:45 am

      Seems like your server wis still configured with the default php version(5.6). Locate the multiphp ini editor and set php 7.2 as corrent

      Reply
    2. cnlevy on November 4, 2019 5:12 pm

      @ABHISHEK THAKUR
      I just googled your error, and got this:

      https://laracasts.com/discuss/channels/laravel/laravel-55-syntax-error-unexpected-in-vendorlaravelframeworksrcilluminatefoundationhelpersphp-on-line-233

      Reply
    3. wasim on November 1, 2019 9:42 am

      change version of php in linux hosting

      Reply
    4. Nick on October 22, 2019 9:22 am

      There was php artisan –-version

      Reply
    5. Eranda on September 16, 2019 3:58 am

      you can simply go to your lavarel folder and type following. you will be getting the version
      php artisan –version

      Reply
    6. Abhishek Thakur on September 11, 2019 12:27 pm

      Hello Sir, I’m very impressed from your articles.
      I hardly graduate in B.C.A and start working with laravel . I develop a project in local host but when i upload on Linux server then A error display on screen. Please Sir help me. Server php version is 7.2 and my laravel project version is 5.8 latest
      Error message:
      Parse error: syntax error, unexpected ‘?’ in …./vendor/laravel/framework/src/Illuminate/Foundation/helpers.php on line 500

      Sir please Reply me. I need a expert advice. I try to solve this problem but I fail every time

      Reply

    Leave A Reply Cancel Reply

    Advertisement
    Recent Posts
    • How to List Manually Installed Packages in Ubuntu & Debian
    • 10 Bash Tricks Every Developer Should Know
    • How to Validate Email Address in JavaScript
    • Firewalld: Common Firewall Rules and Commands
    • 12 Apk Commands in Alpine Linux Package Management
    Facebook Twitter Instagram Pinterest
    © 2023 Tecadmin.net. All Rights Reserved | Terms  | Privacy Policy

    Type above and press Enter to search. Press Esc to cancel.