Facebook Twitter Instagram
    TecAdmin
    • Home
    • Ubuntu 20.04
      • Upgrade Ubuntu
      • Install Java
      • Install Node.js
      • Install Docker
      • Install LAMP Stack
    • Tutorials
      • AWS
      • Shell Scripting
      • Docker
      • Git
      • MongoDB
    • FeedBack
    • Submit Article
    • About Us
    Facebook Twitter Instagram
    TecAdmin
    Home»PHP Framework»How to Check Laravel Version by CLI and File

    How to Check Laravel Version by CLI and File

    RahulBy RahulApril 14, 20192 Mins ReadUpdated:June 23, 2022

    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.

    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

    In this quick tutorial, you have learned, how to find the Laravel version installed on your system.

    Laravel version
    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email WhatsApp
    Previous ArticleHow to Enable JSON Gzip Compression in Apache
    Next Article How to Check if String contains Substring in Java

    Related Posts

    How To Check OS Version with Linux Command Line

    3 Mins Read

    How to Check the PostgreSQL Version

    Updated:August 6, 20212 Mins Read

    How To Set Up Laravel on Ubuntu 21.04 & 20.10

    Updated:July 15, 20214 Mins Read

    How to Enable Debug Mode in Laravel

    Updated:May 28, 20211 Min Read

    How to Remove Package from Laravel (Composer)

    Updated:July 15, 20211 Min Read

    How to Check MySQL Version

    Updated:July 23, 20212 Mins Read

    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

    Recent Posts
    • How To Install Docker on Ubuntu 22.04
    • How to Install Bower on Ubuntu 22.04 & 20.04
    • How to run “npm start” through Docker
    • Filesystem Hierarchy Structure (FHS) in Linux
    • How to accept user input in Python
    Facebook Twitter Instagram Pinterest
    © 2022 Tecadmin.net. All Rights Reserved | Terms  | Privacy Policy

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