Find the nf file in your Apache’s conf directory, e.g.: C:\xampp\apache\conf\extra\nf, open it, paste the following lines and save it. The specific folder is your Laravel project’s public directory. Server to load the contents of a specific folder when someone requests Now we will create a virtual host in Apache and we will instruct our Don’t worry, will remain available as well. 127.0.0.1 laravel.testīy doing this we tell Windows to direct laravel.test domain to our localhost. Go to the following folder C:\Windows\System32\drivers\etc and open the hosts file, paste the following line and save it. We will use laravel.test in this tutorial. Now dream a custom domain for your project. □Ĭustom domain for your Laravel project on localhost Once you complete this tutorial, you don’t have to type php artisan serve anymore, at least. Among many nice features, it handles multiple tabs, remembers the directory where you were last time and supports copy paste properly. To make your life easier, I would like to recommend you a better, free terminal tool instead of the default Windows cmd interface. But since many modern dev tools require typing commands in terminal (e.g.: NodeJS, Composer), you’ll have to get used to them inevitably. Now, use the installer, it will set up your PATH so that you can call composer from any directory in your command line.įor people who use XAMPP or something similar for web development, Laravel’s command line installs and operations might be repulsive in the beginning. Installed, which is a dependency manager for PHP. ![]() This tutorial starts from the point where Apache, MariaDB/MySQL and
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |