Install Laravel 11 on Windows from scratch | Laravel 11 Installation Steps | Install via Composer

แชร์
ฝัง
  • เผยแพร่เมื่อ 23 ส.ค. 2024
  • Recently, the Laravel 11 version has been launched. In this video, we will take some simple steps to install Laravel 11. We need to make sure that our server meets the Laravel 11 requirements.
    To Install Laravel 11, you can install Xampp or Wamp then Composer and finally install Laravel 11.
    Steps to install Laravel 11 are as below:
    1) Install Xampp/Wamp:-
    You can install the latest Xampp as per your Operating System from the below link:-
    www.apachefrie...
    Make sure the PHP version must be greater than or equal to 8.2
    You can also install Wamp from the below link:-
    www.wampserver....
    2) Install Composer:-
    A composer is a tool for dependency management in PHP. We can install composer from the below link:-
    getcomposer.or...
    or directly download Composer Setup for Windows:-
    getcomposer.or...
    After downloading the setup, just install it in your Xampp folder at path /xampp/php/ and after installation, you can check in Shell in your Xampp Control Panel if you are using Xampp. Type "composer" and enter, "Composer" related commands you can able to see.
    3) Install Laravel 11
    After installing Xampp latest version with the latest PHP version and Composer as well, now we are ready to install the Laravel 11 project.
    Simply open the below Laravel 11 link and follow the instructions:-
    laravel.com/do...
    Two ways to install Laravel 11:-
    1) via Composer Create-Project :-
    composer create-project --prefer-dist laravel/laravel blog
    2) via Laravel Installer:-
    First, download the Laravel installer using Composer:
    composer global require laravel/installer
    And then run the below command to install the Laravel 11 project:-
    laravel new project_name
    You can install Git Bash as well to install and run Laravel by following the below link:-
    • Laravel Tutorial : Use...
    If in case "Laravel PHP Command Not Found" error comes while installing Laravel 11 with "laravel new project_name" command then try to set the environment variables like below:-
    i) Click on the Windows button on the bottom left and go to System
    ii) Click the Advanced System Settings link in the left column
    iii) In the System Properties window, click on the Advanced tab, then click the Environment Variables button near the bottom of that tab.
    iv) In the Environment Variables window, highlight the Path variable in the "System variables" section and click the Edit button. Add the path lines with the paths you want the computer to access.
    v) Then add the below paths to Windows PATH environment variables: G:\xampp\mysql\bin;G:\xampp\php;
    (In my case, Xampp is in G drive so I gave G path, you can give your drive where your Xampp is installed)
    Now Laravel 11 must be installed with "laravel new project_name" command so exit current Git Bash and go to your project folder and right-click on it to run again.
    4) Run Laravel by giving the below command in the project folder:-
    php artisan serve
    5) Check the Laravel version by giving the below command:-
    php artisan --version
    You can see it will show Laravel Framework 11.0.0. It means the Laravel 11 version has been installed successfully.
    If in case, it shows Laravel 10.0 version or your old version, then do the below steps to update it to Laravel 11.0:-
    a) Update composer.json file:-
    Update the composer.json file located at the root of your project to update the Laravel framework from 10.0 to 11.0
    "laravel/framework": "11.0.*",
    b) Run "composer update" command :-
    After updating composer.json, you have to run the "composer update" command to update Laravel 10.0 to 11.0
    c) Run "php artisan -version" command :
    Now you can see; that it must show Laravel Framework 11.0.0 when you check the Laravel version.
    6) Encryption Key Issue (if any)
    If an encryption Key issue comes up, then run the below command:-
    php artisan key:generate
    And then restart Laravel server again means closing Git Bash and running it again with "php artisan serve" command.
    Thanks for watching :)
    ►Click here to subscribe for Laravel & other updates - / stackdevelopers
    Popular Stack Developers Series that can help you:-
    ►Laravel 10 Tutorial Playlist: • Laravel 10 Tutorial: M...
    ►Laravel Multi-Vendor E-commerce Website - • Laravel Multi Vendor T...
    ►React JS Tutorial for Beginners with Laravel - • React JS Tutorial with...
    ►Laravel Tutorial for Beginners - • Laravel Tutorial for B...
    ►GIT Tutorial for Beginners - • Git Tutorial for Begin...
    ►Join this channel to get the complete source code of all series:
    / @stackdevelopers
    #laravel11 #laravel10tutorial #laravel

ความคิดเห็น • 14

  • @user-qe9hc4kv7x
    @user-qe9hc4kv7x 3 หลายเดือนก่อน +1

    Thank you so much sir I watched plenty videos but can't work properly but your one video I can do all 👏👏

    • @StackDevelopers
      @StackDevelopers  3 หลายเดือนก่อน +1

      You are most welcome ❤️

  • @sonahazal8067
    @sonahazal8067 3 หลายเดือนก่อน +1

    Thank you so much sir,i watched many videos to do but it didn't work,your video helped me to do straight point no lag ❤

    • @StackDevelopers
      @StackDevelopers  3 หลายเดือนก่อน

      You are most welcome ❤️

  • @thibautkouame1721
    @thibautkouame1721 3 หลายเดือนก่อน +1

    good content, keep it up.

  • @nuramiril9465
    @nuramiril9465 4 หลายเดือนก่อน +1

    'composer' is not recognized as an internal or external commnad, operable program or batch file
    What's the solution?

    • @StackDevelopers
      @StackDevelopers  4 หลายเดือนก่อน

      First, tell me if you are using Windows?
      If yes, then you must have installed from below link:
      getcomposer.org/download/
      or you can directly download Composer Setup for Windows from below link:-
      getcomposer.org/Composer-Setup.exe

    • @arnelsantilleces4870
      @arnelsantilleces4870 3 หลายเดือนก่อน

      for new user that might have the same problem, try to close all the file explorer and restart xampp

  • @souravmajumder4630
    @souravmajumder4630 4 หลายเดือนก่อน

    T
    could not find driver (Connection: sqlite, SQL: PRAGMA foreign_keys = ON;) windows I'm facing this issue. how to fix that?

    • @StackDevelopers
      @StackDevelopers  4 หลายเดือนก่อน

      For windows;
      Navigate to the php.ini file (C:\php\php.ini)
      Enable the following by removing the semicolons:
      ;extension=pdo_sqlite
      ;extension=sqlite3
      So they should look like this:
      extension=pdo_sqlite
      extension=sqlite3

    • @souravmajumder4630
      @souravmajumder4630 4 หลายเดือนก่อน +1

      @@StackDevelopers thanks

  • @naziacoder6553
    @naziacoder6553 5 หลายเดือนก่อน +1

    Sir please increase volume