{"id":726,"date":"2019-09-18T18:40:50","date_gmt":"2019-09-18T18:40:50","guid":{"rendered":"https:\/\/www.programmingfields.com\/?p=726"},"modified":"2026-05-02T06:32:34","modified_gmt":"2026-05-02T06:32:34","slug":"laravel-install-with-composer","status":"publish","type":"post","link":"https:\/\/programmingfields.com\/laravel-install-with-composer\/","title":{"rendered":"How to Install Laravel 6 in Windows and Ubuntu"},"content":{"rendered":"\n<p>This is my first post on the Laravel 6 series. From, today, I will be posting the tutorials on the most popular PHP framework. Recently, the laravel has released the latest version which is Laravel 6. It is more robust and secure. Currently, it is released in the LTS (long term support). That means the bugs fixings and the security fixings will take a long while. So, I am going to start with laravel installation. I am going to show you the step by step process of the <strong>laravel install<\/strong> in windows and ubuntu platform. We&#8217;ll download composer first.<\/p>\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 counter-hierarchy ez-toc-counter ez-toc-light-blue ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/programmingfields.com\/laravel-install-with-composer\/#Composer_%E2%80%93_Install_Laravel\" >Composer &#8211; Install Laravel<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/programmingfields.com\/laravel-install-with-composer\/#Requirements_to_Install_Laravel\" >Requirements to Install Laravel<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/programmingfields.com\/laravel-install-with-composer\/#Download_and_Install_Composer_in_Windows\" >Download and Install Composer in Windows<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/programmingfields.com\/laravel-install-with-composer\/#Laravel_Install_%E2%80%93_Create_New_Laravel_Project_in_Windows\" >Laravel Install &#8211; Create New Laravel Project in Windows<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/programmingfields.com\/laravel-install-with-composer\/#Open_Laravel_Project\" >Open Laravel Project<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/programmingfields.com\/laravel-install-with-composer\/#How_to_Run_the_Laravel_Project\" >How to Run the Laravel Project<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/programmingfields.com\/laravel-install-with-composer\/#Install_Composer_in_Ubuntu\" >Install Composer in Ubuntu<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/programmingfields.com\/laravel-install-with-composer\/#Install_Laravel_in_Ubuntu\" >Install Laravel in Ubuntu<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/programmingfields.com\/laravel-install-with-composer\/#Conclusion\" >Conclusion<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Composer_%E2%80%93_Install_Laravel\"><\/span>Composer &#8211; Install Laravel<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Laravel requires the <strong>composer <\/strong>for managing and controlling the dependencies in PHP. <\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>A composer is a tool that allows you to declare the libraries that are required by the project.<\/li><li>Basically, it is a package manager that provides the standard format of dependencies management in PHP.<\/li><li>It is an open-source tool and free to use.<\/li><\/ul>\n\n\n\n<p class=\"has-text-align-center\"><a href=\"https:\/\/www.programmingfields.com\/laravel-6-crud-application\/\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\"Laravel 6 CRUD Tutorial with Form Validation (opens in a new tab)\">Laravel 6 CRUD Tutorial with Form Validation<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Requirements_to_Install_Laravel\"><\/span>Requirements to Install Laravel<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Before moving to the laravel installation. Please make sure you have followed the below requirements.<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>The Laravel 6 requires <strong>PHP &gt;= 7.2.0<\/strong> version.<\/li><li>An <strong>OpenSSL<\/strong> extension enabled for the PHP.<\/li><li>BCMath PHP Extension in the PHP.<\/li><li>Ctype PHP Extension<\/li><li>JSON PHP Extension<\/li><li>Mbstring PHP Extension<\/li><li>PDO PHP Extension<\/li><li>Tokenizer PHP Extension<\/li><li>XML PHP Extension <\/li><\/ol>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Download_and_Install_Composer_in_Windows\"><\/span>Download and Install Composer in Windows<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<ul class=\"wp-block-list\"><li>Before, downloading the composer, please make sure you have the latest version of PHP (7.2). If you haven&#8217;t installed PHP and MySQL then it is highly recommended to go through the <a rel=\"noreferrer noopener\" aria-label=\"Installation and configuration of PHP and MySQL (opens in a new tab)\" href=\"https:\/\/www.programmingfields.com\/how-to-install-and-configure-xampp-for-windows\/\" target=\"_blank\">installation and configuration of PHP and MySQL<\/a>.<\/li><li>In the next step, download the latest version of the composer for the windows, from the official website which is <a rel=\"noreferrer noopener\" aria-label=\"https:\/\/getcomposer.org\/download\/ (opens in a new tab)\" href=\"https:\/\/getcomposer.org\/download\/\" target=\"_blank\">https:\/\/getcomposer.org\/download\/<\/a><\/li><li>This is small in the size. Once, you have downloaded, just start the installation process as similar to the other applications.<\/li><li>Install it globally so leave the rest things as default.<\/li><\/ul>\n\n\n\n<p><\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"496\" height=\"383\" src=\"https:\/\/i0.wp.com\/www.programmingfields.com\/wp-content\/uploads\/2019\/09\/Composer-Setup.tmp_yRnRZ6qgQE.png?resize=496%2C383&#038;ssl=1\" alt=\"Install Composer\" class=\"wp-image-738\" srcset=\"https:\/\/i0.wp.com\/programmingfields.com\/wp-content\/uploads\/2019\/09\/Composer-Setup.tmp_yRnRZ6qgQE.png?w=496&amp;ssl=1 496w, https:\/\/i0.wp.com\/programmingfields.com\/wp-content\/uploads\/2019\/09\/Composer-Setup.tmp_yRnRZ6qgQE.png?resize=300%2C232&amp;ssl=1 300w\" sizes=\"auto, (max-width: 496px) 100vw, 496px\" \/><figcaption>Installation of the composer &#8211; 1<\/figcaption><\/figure><\/div>\n\n\n\n<ul class=\"wp-block-list\"><li>Now, click on install and it will take very less time to install.<\/li><\/ul>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"491\" height=\"383\" src=\"https:\/\/i0.wp.com\/www.programmingfields.com\/wp-content\/uploads\/2019\/09\/Composer-Setup.tmp_YTHQfLTLvh.png?resize=491%2C383&#038;ssl=1\" alt=\"Install Composer\" class=\"wp-image-739\" srcset=\"https:\/\/i0.wp.com\/programmingfields.com\/wp-content\/uploads\/2019\/09\/Composer-Setup.tmp_YTHQfLTLvh.png?w=491&amp;ssl=1 491w, https:\/\/i0.wp.com\/programmingfields.com\/wp-content\/uploads\/2019\/09\/Composer-Setup.tmp_YTHQfLTLvh.png?resize=300%2C234&amp;ssl=1 300w\" sizes=\"auto, (max-width: 491px) 100vw, 491px\" \/><figcaption>Installation of Composer &#8211; 2<\/figcaption><\/figure><\/div>\n\n\n\n<p class=\"has-text-align-center\"><a href=\"https:\/\/www.programmingfields.com\/upload-files-and-images-in-laravel-6\/\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\"How to Upload Files and Images in Laravel 6 with Validation (opens in a new tab)\">How to Upload Files and Images in Laravel 6 with Validation<\/a><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Once, the composer installation has finished. Open the command prompt windows by pressing (win+r) key.<\/li><li>Then type composer and hit enter.<\/li><li>If you got a response like this then that means the composer has been installed successfully in your system.<\/li><\/ul>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"652\" height=\"319\" src=\"https:\/\/i0.wp.com\/www.programmingfields.com\/wp-content\/uploads\/2019\/09\/cmd_BuE12WTcgq-e1568662275325.png?resize=652%2C319&#038;ssl=1\" alt=\"Composer Version\" class=\"wp-image-740\" srcset=\"https:\/\/i0.wp.com\/programmingfields.com\/wp-content\/uploads\/2019\/09\/cmd_BuE12WTcgq-e1568662275325.png?w=652&amp;ssl=1 652w, https:\/\/i0.wp.com\/programmingfields.com\/wp-content\/uploads\/2019\/09\/cmd_BuE12WTcgq-e1568662275325.png?resize=300%2C147&amp;ssl=1 300w\" sizes=\"auto, (max-width: 652px) 100vw, 652px\" \/><figcaption>Composer Installation Success <\/figcaption><\/figure><\/div>\n\n\n\n<p>Now, we&#8217;ll be moving to the process of Laravel download and install.<\/p>\n\n\n\n<p class=\"has-text-align-center\"><a href=\"https:\/\/www.programmingfields.com\/check-if-email-available-in-php-using-ajax\/\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\"Check Live Email Availability in PHP Using AJAX (opens in a new tab)\">Check Live Email Availability in PHP Using AJAX<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Laravel_Install_%E2%80%93_Create_New_Laravel_Project_in_Windows\"><\/span>Laravel Install &#8211; Create New Laravel Project in Windows<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<ul class=\"wp-block-list\"><li>Open the command prompt windows you can also use Gitbash or PowerShell window.<\/li><li>Type the following command to create a new project in the Laravel.<\/li><\/ul>\n\n\n\n<pre title=\"Create Laravel 6 Project\" class=\"wp-block-code\"><code lang=\"php\" class=\"language-php\">composer create-project --prefer-dist laravel\/laravel my-first-app<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>In the above command replace your project name from <code>my-first-app<\/code>. Here, this is the project name that I am going to create in this post.<\/li><\/ul>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"581\" height=\"212\" src=\"https:\/\/i0.wp.com\/programmingfields.com\/wp-content\/uploads\/2019\/09\/composer-create-project-e1568745817594.png?resize=581%2C212&#038;ssl=1\" alt=\"Laravel Create Project\" class=\"wp-image-753\" srcset=\"https:\/\/i0.wp.com\/programmingfields.com\/wp-content\/uploads\/2019\/09\/composer-create-project-e1568745817594.png?w=581&amp;ssl=1 581w, https:\/\/i0.wp.com\/programmingfields.com\/wp-content\/uploads\/2019\/09\/composer-create-project-e1568745817594.png?resize=300%2C109&amp;ssl=1 300w, https:\/\/i0.wp.com\/programmingfields.com\/wp-content\/uploads\/2019\/09\/composer-create-project-e1568745817594.png?resize=270%2C100&amp;ssl=1 270w\" sizes=\"auto, (max-width: 581px) 100vw, 581px\" \/><figcaption><strong>Create Laravel Project<\/strong><\/figcaption><\/figure><\/div>\n\n\n\n<ul class=\"wp-block-list\"><li>This will take some time to install the dependencies, libraries files in the project.<\/li><\/ul>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"644\" height=\"440\" src=\"https:\/\/i0.wp.com\/programmingfields.com\/wp-content\/uploads\/2019\/09\/larvel-new-project.png?resize=644%2C440&#038;ssl=1\" alt=\"Laravel Install\" class=\"wp-image-757\" srcset=\"https:\/\/i0.wp.com\/programmingfields.com\/wp-content\/uploads\/2019\/09\/larvel-new-project.png?w=644&amp;ssl=1 644w, https:\/\/i0.wp.com\/programmingfields.com\/wp-content\/uploads\/2019\/09\/larvel-new-project.png?resize=300%2C205&amp;ssl=1 300w\" sizes=\"auto, (max-width: 644px) 100vw, 644px\" \/><figcaption>Creating Laravel Project<\/figcaption><\/figure><\/div>\n\n\n\n<ul class=\"wp-block-list\"><li>So, please wait until the process completes.<\/li><li>Once, the project has been created, you will need to open it in your favorite editor.<\/li><\/ul>\n\n\n\n<p class=\"has-text-align-center\"><a href=\"https:\/\/www.programmingfields.com\/dropdown-selection-filter-in-php-using-jquery-ajax\/\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\"Dependent Dropdown Filter in PHP Using AJAX and jQuery (opens in a new tab)\">Dependent Dropdown Filter in PHP Using AJAX and jQuery<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Open_Laravel_Project\"><\/span>Open Laravel Project<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<ul class=\"wp-block-list\"><li>You can open this project in any editor like <strong>sublime<\/strong>, <strong>bracket<\/strong>, <strong>atom <\/strong>or <strong>Visual Studio Code<\/strong>. But, I recommend using the <a rel=\"noreferrer noopener\" aria-label=\"VS Code (opens in a new tab)\" href=\"https:\/\/code.visualstudio.com\/download\" target=\"_blank\">VS Code<\/a>.<\/li><li>Navigate to your project folder (where laravel project has been created.)<\/li><li>Hold <strong>Shift key<\/strong> then Right-click the mouse and open the <strong>PowerShell<\/strong> window.<\/li><li>Also, you can use the <strong>GitBash<\/strong> then you no need to use the shift key. Just right click the mouse, and click on open <strong>GitBash<\/strong>.<\/li><li>Now, type <code>code .<\/code> , it will open your project in Visual Code Editor.<\/li><\/ul>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"581\" height=\"202\" src=\"https:\/\/i0.wp.com\/www.programmingfields.com\/wp-content\/uploads\/2019\/09\/Open-VS-Code.png?resize=581%2C202&#038;ssl=1\" alt=\"Laravel Project in VS Code\" class=\"wp-image-760\" srcset=\"https:\/\/i0.wp.com\/programmingfields.com\/wp-content\/uploads\/2019\/09\/Open-VS-Code.png?w=581&amp;ssl=1 581w, https:\/\/i0.wp.com\/programmingfields.com\/wp-content\/uploads\/2019\/09\/Open-VS-Code.png?resize=300%2C104&amp;ssl=1 300w\" sizes=\"auto, (max-width: 581px) 100vw, 581px\" \/><figcaption>Open Project in VS Code Editor<\/figcaption><\/figure><\/div>\n\n\n\n<ul class=\"wp-block-list\"><li>Now, the project has been opened in the VS Code editor.<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1366\" height=\"727\" src=\"https:\/\/i1.wp.com\/www.programmingfields.com\/wp-content\/uploads\/2019\/09\/Code_JsiQJf3mlN.png?fit=1024%2C545&amp;ssl=1\" alt=\"\" class=\"wp-image-764\" srcset=\"https:\/\/i0.wp.com\/programmingfields.com\/wp-content\/uploads\/2019\/09\/Code_JsiQJf3mlN.png?w=1366&amp;ssl=1 1366w, https:\/\/i0.wp.com\/programmingfields.com\/wp-content\/uploads\/2019\/09\/Code_JsiQJf3mlN.png?resize=300%2C160&amp;ssl=1 300w, https:\/\/i0.wp.com\/programmingfields.com\/wp-content\/uploads\/2019\/09\/Code_JsiQJf3mlN.png?resize=768%2C409&amp;ssl=1 768w, https:\/\/i0.wp.com\/programmingfields.com\/wp-content\/uploads\/2019\/09\/Code_JsiQJf3mlN.png?resize=1024%2C545&amp;ssl=1 1024w\" sizes=\"auto, (max-width: 1000px) 100vw, 1000px\" \/><\/figure>\n\n\n\n<p class=\"has-text-align-center\"><a href=\"https:\/\/www.programmingfields.com\/ajax-php-form-handling-using-jquery\/\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\"Ajax PHP Form Handling Using jQuery (opens in a new tab)\">Ajax PHP Form Handling Using jQuery<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"How_to_Run_the_Laravel_Project\"><\/span>How to Run the Laravel Project<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<ul class=\"wp-block-list\"><li>Laravel project uses the built-in server of the PHP. So no need to install any server. <\/li><li>At the top menu bar in the VS Code editor click on the <strong>Terminal <\/strong>and then click on the <strong>New Terminal<\/strong>.<\/li><li>It will open the Terminal tab at the bottom.<\/li><li>Now, type the following command there<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"php\" class=\"language-php\">php artisan serve<\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"680\" height=\"208\" src=\"https:\/\/i0.wp.com\/www.programmingfields.com\/wp-content\/uploads\/2019\/09\/php-artisan-serve-2.png?resize=680%2C208&#038;ssl=1\" alt=\"Run Laravel Project\" class=\"wp-image-768\" srcset=\"https:\/\/i0.wp.com\/programmingfields.com\/wp-content\/uploads\/2019\/09\/php-artisan-serve-2.png?w=680&amp;ssl=1 680w, https:\/\/i0.wp.com\/programmingfields.com\/wp-content\/uploads\/2019\/09\/php-artisan-serve-2.png?resize=300%2C92&amp;ssl=1 300w\" sizes=\"auto, (max-width: 680px) 100vw, 680px\" \/><figcaption>Run Laravel Project<\/figcaption><\/figure><\/div>\n\n\n\n<ul class=\"wp-block-list\"><li>The above command will start the laravel development server.<\/li><li>After that, open your browser and access the project by typing the following URL.<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"php\" class=\"language-php\">http:\/\/localhost:8000<\/code><\/pre>\n\n\n\n<p>You will see the result in the browser as the Laravel default page as shown below.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"938\" height=\"575\" src=\"https:\/\/i0.wp.com\/www.programmingfields.com\/wp-content\/uploads\/2019\/09\/Laravel.png?resize=938%2C575&#038;ssl=1\" alt=\"Running Laravel Application\" class=\"wp-image-773\" srcset=\"https:\/\/i0.wp.com\/programmingfields.com\/wp-content\/uploads\/2019\/09\/Laravel.png?w=938&amp;ssl=1 938w, https:\/\/i0.wp.com\/programmingfields.com\/wp-content\/uploads\/2019\/09\/Laravel.png?resize=300%2C184&amp;ssl=1 300w, https:\/\/i0.wp.com\/programmingfields.com\/wp-content\/uploads\/2019\/09\/Laravel.png?resize=768%2C471&amp;ssl=1 768w\" sizes=\"auto, (max-width: 938px) 100vw, 938px\" \/><figcaption>Running Laravel Application<\/figcaption><\/figure><\/div>\n\n\n\n<p class=\"has-text-align-center\"><a href=\"https:\/\/www.programmingfields.com\/php-file-upload-using-jquery-and-ajax\/\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\"PHP File Upload Using AJAX and jQuery without Form Refresh (opens in a new tab)\">PHP File Upload Using AJAX and jQuery without Form Refresh<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Install_Composer_in_Ubuntu\"><\/span>Install Composer in Ubuntu<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Before installing the composer in Ubuntu. Please make sure you have the <strong>PHP &gt;= 7.2.0<\/strong> installed in the system. If not then check the PHP version.&nbsp;Just open the terminal window and type <code>php -v<\/code><\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"626\" height=\"132\" src=\"https:\/\/i0.wp.com\/www.programmingfields.com\/wp-content\/uploads\/2019\/09\/AnyDesk_9GUeURE14s.png?resize=626%2C132&#038;ssl=1\" alt=\"\" class=\"wp-image-803\" srcset=\"https:\/\/i0.wp.com\/programmingfields.com\/wp-content\/uploads\/2019\/09\/AnyDesk_9GUeURE14s.png?w=626&amp;ssl=1 626w, https:\/\/i0.wp.com\/programmingfields.com\/wp-content\/uploads\/2019\/09\/AnyDesk_9GUeURE14s.png?resize=300%2C63&amp;ssl=1 300w\" sizes=\"auto, (max-width: 626px) 100vw, 626px\" \/><figcaption><strong>Check PHP Version in Ubuntu<\/strong><\/figcaption><\/figure><\/div>\n\n\n\n<ul class=\"wp-block-list\"><li>If you have the older version than 7.2.0 than I recommend you upgrade the PHP first.<\/li><li>In the next step update the package of the Ubuntu.<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">sudo apt-get update<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Now, install the curl utility so that we can install the composer.<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">sudo apt-get install curl<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Then, type the below command to install the composer.<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">curl -s https:\/\/getcomposer.org\/installer | php<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>The above command will download <strong>composer.phar<\/strong> package in the <strong>\/tmp<\/strong> directory. But, we require the composer to run global so that it can be accessed from anywhere. <\/li><li>Therefore, we will require to move it to&nbsp;<strong>\/usr\/local\/bin<\/strong><em><strong>\/<\/strong><\/em>&nbsp;directory under the name &#8216;<strong>composer<\/strong>&#8216;. <\/li><li>So, after that type the below command to move the <strong>composer.phar<\/strong> package.<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">sudo mv composer.phar \/usr\/local\/bin\/composer<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Now you can access composer from anywhere because it has been installed globally.<\/li><li>Hence, check the composer in the terminal and type <code>composer<\/code>.<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">composer<\/code><\/pre>\n\n\n\n<p class=\"has-text-align-center\"><a rel=\"noreferrer noopener\" aria-label=\"How to Implement jQuery DataTable in PHP (opens in a new tab)\" href=\"https:\/\/www.programmingfields.com\/datatable-in-php-with-mysql-database\/\" target=\"_blank\">How to Implement jQuery DataTable in PHP MySQL Database<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Install_Laravel_in_Ubuntu\"><\/span>Install Laravel in Ubuntu<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Now, we will install the Laravel in Ubuntu. First of all, we will need to navigate into the <strong>public html<\/strong> directory. <\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Actually, we are using Apache, so it should be installed the <strong>\/var\/www\/html <\/strong>directory.  <\/li><li>So for navigating into<strong> \/var\/www\/html<\/strong> please type the below command in the terminal.<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">cd \/var\/www\/html<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Once, you are done with this, create a new project with laravel installation by following the below command.<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">sudo composer create-project --prefer-dist laravel\/laravel your-project-name <\/code><\/pre>\n\n\n\n<p>Here, <code>your-project-name<\/code> is the project name that is going to be created.<\/p>\n\n\n\n<p>Once you are done with the project creation, run the laravel project using the following command.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">sudo php artisan serve<\/code><\/pre>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"938\" height=\"575\" src=\"https:\/\/i0.wp.com\/www.programmingfields.com\/wp-content\/uploads\/2019\/09\/Laravel.png?resize=938%2C575&#038;ssl=1\" alt=\"Laravel Project\" class=\"wp-image-773\" srcset=\"https:\/\/i0.wp.com\/programmingfields.com\/wp-content\/uploads\/2019\/09\/Laravel.png?w=938&amp;ssl=1 938w, https:\/\/i0.wp.com\/programmingfields.com\/wp-content\/uploads\/2019\/09\/Laravel.png?resize=300%2C184&amp;ssl=1 300w, https:\/\/i0.wp.com\/programmingfields.com\/wp-content\/uploads\/2019\/09\/Laravel.png?resize=768%2C471&amp;ssl=1 768w\" sizes=\"auto, (max-width: 938px) 100vw, 938px\" \/><figcaption>Laravel Homepage<\/figcaption><\/figure><\/div>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Conclusion\"><\/span>Conclusion<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>We have installed Laravel 6 with the composer in Windows as well as the Ubuntu platform. For Laravel 6, it requires the latest version of PHP &gt;=7.2. Laravel requires the composer. Basically, a composer provides all the dependencies that require a Laravel 6 application.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This is my first post on the Laravel 6 series. From, today, I will be posting the tutorials on the most popular PHP framework. Recently, the laravel has released the latest version which is Laravel 6. It is more robust and secure. Currently, it is released in the LTS (long term support). That means the [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":786,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_genesis_hide_title":false,"_genesis_hide_breadcrumbs":false,"_genesis_hide_singular_image":false,"_genesis_hide_footer_widgets":false,"_genesis_custom_body_class":"","_genesis_custom_post_class":"","_genesis_layout":"","jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[2564],"tags":[506,504,503,502],"yst_prominent_words":[494,483,461,509,66,457,487,1206,498,482,481,26,500,471,51,510,68,511,492,493],"class_list":{"0":"post-726","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-laravel","8":"tag-download-composer","9":"tag-laravel-composer-install","10":"tag-laravel-download","11":"tag-laravel-install","12":"entry"},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/programmingfields.com\/wp-content\/uploads\/2019\/09\/Laravel-Installation.png?fit=560%2C315&ssl=1","jetpack_likes_enabled":true,"jetpack_sharing_enabled":true,"jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/programmingfields.com\/wp-json\/wp\/v2\/posts\/726","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/programmingfields.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/programmingfields.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/programmingfields.com\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/programmingfields.com\/wp-json\/wp\/v2\/comments?post=726"}],"version-history":[{"count":1,"href":"https:\/\/programmingfields.com\/wp-json\/wp\/v2\/posts\/726\/revisions"}],"predecessor-version":[{"id":8686,"href":"https:\/\/programmingfields.com\/wp-json\/wp\/v2\/posts\/726\/revisions\/8686"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/programmingfields.com\/wp-json\/wp\/v2\/media\/786"}],"wp:attachment":[{"href":"https:\/\/programmingfields.com\/wp-json\/wp\/v2\/media?parent=726"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/programmingfields.com\/wp-json\/wp\/v2\/categories?post=726"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/programmingfields.com\/wp-json\/wp\/v2\/tags?post=726"},{"taxonomy":"yst_prominent_words","embeddable":true,"href":"https:\/\/programmingfields.com\/wp-json\/wp\/v2\/yst_prominent_words?post=726"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}