title
Laravel From Scratch [Part 2] - Environment Setup & Laravel Installation

description
In this video we will setup our environment. We will be using XAMPP which gives us an Apache server with PHP and MySQL. We will install Laravel with Composer and we will be using the Git Bash terminal and integrate it with Visual Studio Code CODE: Complete Code For This Series https://github.com/bradtraversy/lsapp XAMPP SETUP: https://www.youtube.com/watch?v=6tCWiexc05U 10 PROJECT LARAVEL COURSE: Please use affiliate link below https://www.eduonix.com/affiliates/id/16-10485 50% OFF: Use special code "traversy" SUPPORT: We spend massive amounts of time creating these free videos, please donate to show your support: http://www.paypal.me/traversymedia http://www.patreon.com/traversymedia FOLLOW TRAVERSY MEDIA: http://www.facebook.com/traversymedia http://www.twitter.com/traversymedia http://www.linkedin.com/in/bradtraversy

detail
{'title': 'Laravel From Scratch [Part 2] - Environment Setup & Laravel Installation', 'heatmap': [{'end': 275.596, 'start': 246.694, 'weight': 0.873}, {'end': 485.934, 'start': 450.548, 'weight': 0.889}, {'end': 581.018, 'start': 566.269, 'weight': 0.71}, {'end': 641.141, 'start': 623.64, 'weight': 1}, {'end': 689.686, 'start': 653.932, 'weight': 0.74}], 'summary': 'Learn how to set up the laravel environment, covering xampp installation for apache, php, and mysql, and configuring composer, git, and visual studio code on windows, including creating a laravel project with composer and setting up a local server at lsapp.dev.', 'chapters': [{'end': 43.117, 'segs': [{'end': 43.117, 'src': 'embed', 'start': 0.643, 'weight': 0, 'content': [{'end': 4.786, 'text': "all right guys, in this video we're going to get our environment set up for laravel.", 'start': 0.643, 'duration': 4.143}, {'end': 10.049, 'text': "now, the only thing that i already have installed that i'm not going to do in this video is install xamp.", 'start': 4.786, 'duration': 5.263}, {'end': 12.031, 'text': 'okay, xamp is.', 'start': 10.049, 'duration': 1.982}, {'end': 17.634, 'text': 'it gives us apache, which is a web server, php and mysql.', 'start': 12.031, 'duration': 5.603}, {'end': 19.476, 'text': 'okay, now, i already have it installed.', 'start': 17.634, 'duration': 1.842}, {'end': 26.981, 'text': "it's very simple, but i will put a link in the description to the episode of php front to back, where we installed it and set it up.", 'start': 19.476, 'duration': 7.505}, {'end': 29.323, 'text': 'Okay so, ApacheFriends.org.', 'start': 27.521, 'duration': 1.802}, {'end': 31.025, 'text': "you can see it's cross-platform.", 'start': 29.323, 'duration': 1.702}, {'end': 39.373, 'text': "But if you're on a Linux distribution, I'd probably suggest just running a native LAMP stack rather than something like XAMPP.", 'start': 31.625, 'duration': 7.748}, {'end': 41.696, 'text': 'You can also use WAMP for Windows.', 'start': 39.834, 'duration': 1.862}, {'end': 43.117, 'text': 'You can use MAMP for Mac.', 'start': 41.736, 'duration': 1.381}], 'summary': 'Setting up laravel environment with xampp for apache, php, and mysql. cross-platform options available.', 'duration': 42.474, 'max_score': 0.643, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/H3uRXvwXz1o/pics/H3uRXvwXz1o643.jpg'}], 'start': 0.643, 'title': 'Setting up laravel environment', 'summary': 'Covers setting up the environment for laravel, emphasizing xampp installation to obtain apache, php, and mysql, and discussing alternatives for various operating systems.', 'chapters': [{'end': 43.117, 'start': 0.643, 'title': 'Setting up laravel environment', 'summary': 'Setting up the environment for laravel, with a focus on installing xampp to get apache, php, and mysql, and alternatives for different operating systems.', 'duration': 42.474, 'highlights': ['XAMPP provides Apache, PHP, and MySQL for the Laravel environment, and the speaker already has it installed.', 'For Linux, using a native LAMP stack is suggested over XAMPP.', 'Alternatives like WAMP for Windows and MAMP for Mac are available for setting up the environment.']}], 'duration': 42.474, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/H3uRXvwXz1o/pics/H3uRXvwXz1o643.jpg', 'highlights': ['XAMPP provides Apache, PHP, and MySQL for the Laravel environment, and the speaker already has it installed.', 'For Linux, using a native LAMP stack is suggested over XAMPP.', 'Alternatives like WAMP for Windows and MAMP for Mac are available for setting up the environment.']}, {'end': 400.456, 'segs': [{'end': 123.973, 'src': 'embed', 'start': 43.878, 'weight': 0, 'content': [{'end': 44.519, 'text': "It's all up to you.", 'start': 43.878, 'duration': 0.641}, {'end': 48.142, 'text': "It's all the same thing as long as you have Apache, PHP, and MySQL.", 'start': 44.559, 'duration': 3.583}, {'end': 53.647, 'text': "We're also going to download Composer, which is a PHP dependency manager.", 'start': 49.804, 'duration': 3.843}, {'end': 56.989, 'text': "It's kind of like NPM for Node.js.", 'start': 54.047, 'duration': 2.942}, {'end': 58.549, 'text': "I'm going to go ahead and download that.", 'start': 57.069, 'duration': 1.48}, {'end': 61.451, 'text': "It's completely cross-platform as well.", 'start': 59.59, 'duration': 1.861}, {'end': 63.852, 'text': "I'm going to download the .exe file.", 'start': 62.091, 'duration': 1.761}, {'end': 64.533, 'text': "I'm on Windows.", 'start': 63.913, 'duration': 0.62}, {'end': 70.939, 'text': "And then we're also going to install Git and Git Bash.", 'start': 67.175, 'duration': 3.764}, {'end': 75.042, 'text': 'Git Bash is a much better editor for Windows.', 'start': 71.359, 'duration': 3.683}, {'end': 80.907, 'text': "And we're also going to be using Visual Studio Code, which is a really nice text editor.", 'start': 75.723, 'duration': 5.184}, {'end': 88.414, 'text': "And we're going to implement the integrated terminal so that we can have the terminal and the editor all on the same screen.", 'start': 81.448, 'duration': 6.966}, {'end': 92.318, 'text': "I think it'll free up some real estate and it'll be a little more efficient.", 'start': 88.794, 'duration': 3.524}, {'end': 97.38, 'text': 'now, by default, the integrated terminal uses powershell,', 'start': 92.998, 'duration': 4.382}, {'end': 101.721, 'text': "but we're going to make it so that it uses this git bash program and i'll show you how to do that.", 'start': 97.38, 'duration': 4.341}, {'end': 103.082, 'text': "so let's download both of these.", 'start': 101.721, 'duration': 1.361}, {'end': 113.405, 'text': "okay, visual studio code we're going to download all right.", 'start': 103.082, 'duration': 10.323}, {'end': 116.226, 'text': "so let's start off with installing composer.", 'start': 113.405, 'duration': 2.821}, {'end': 122.852, 'text': "so open up the exe file we downloaded, And it's just a simple installer.", 'start': 116.226, 'duration': 6.626}, {'end': 123.973, 'text': "We're just going to click Next.", 'start': 122.892, 'duration': 1.081}], 'summary': 'Install apache, php, mysql, composer, git, and visual studio code for development efficiency and integration.', 'duration': 80.095, 'max_score': 43.878, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/H3uRXvwXz1o/pics/H3uRXvwXz1o43878.jpg'}, {'end': 275.596, 'src': 'heatmap', 'start': 246.694, 'weight': 0.873, 'content': [{'end': 250.516, 'text': 'If you go over here, you see we have PowerShell EXE.', 'start': 246.694, 'duration': 3.822}, {'end': 253.618, 'text': 'What I want to do is add Git Bash as an option.', 'start': 250.976, 'duration': 2.642}, {'end': 256.238, 'text': 'So to do that, we need to go to the settings file.', 'start': 253.718, 'duration': 2.52}, {'end': 260, 'text': 'If we go to preferences, settings, and this is just a JSON file.', 'start': 256.259, 'duration': 3.741}, {'end': 265.164, 'text': 'So we can get any of these settings that we want to change, we can just bring over here and replace.', 'start': 260.081, 'duration': 5.083}, {'end': 270.534, 'text': "All right, so what I want is, let's search for terminal.", 'start': 266.092, 'duration': 4.442}, {'end': 275.596, 'text': 'Right here, Terminal Integrated Shell Windows.', 'start': 272.575, 'duration': 3.021}], 'summary': 'Adding git bash as an option in powershell exe settings file.', 'duration': 28.902, 'max_score': 246.694, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/H3uRXvwXz1o/pics/H3uRXvwXz1o246694.jpg'}, {'end': 345.329, 'src': 'embed', 'start': 310.832, 'weight': 5, 'content': [{'end': 318.142, 'text': "alright. now I also want to change the font size, So let's see where that is right here.", 'start': 310.832, 'duration': 7.31}, {'end': 320.302, 'text': 'Terminal integrated font size.', 'start': 318.202, 'duration': 2.1}, {'end': 323.003, 'text': "I'm going to change that to, let's say, 28.", 'start': 320.322, 'duration': 2.681}, {'end': 325.704, 'text': "So we'll need to copy this.", 'start': 323.003, 'duration': 2.701}, {'end': 334.466, 'text': "And I'll change that to 28.", 'start': 328.544, 'duration': 5.922}, {'end': 342.128, 'text': 'And I also want to change the font size for the editor, which is right here, editor font size.', 'start': 334.466, 'duration': 7.662}, {'end': 344.349, 'text': "And I'm doing this so you guys can see it.", 'start': 342.148, 'duration': 2.201}, {'end': 345.329, 'text': "You don't have to do this.", 'start': 344.389, 'duration': 0.94}], 'summary': 'Changing terminal font size to 28 and editor font size for better visibility.', 'duration': 34.497, 'max_score': 310.832, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/H3uRXvwXz1o/pics/H3uRXvwXz1o310832.jpg'}], 'start': 43.878, 'title': 'Setting up development environment', 'summary': 'Covers installing apache, php, mysql, composer, git, and visual studio code on windows, including configuring composer, git, and visual studio code, emphasizing the use of git bash and integrated terminal for efficiency. it also demonstrates setting up the integrated terminal in vs code, adding git bash as an option, and customizing font sizes for terminal and editor, providing a more user-friendly environment.', 'chapters': [{'end': 215.991, 'start': 43.878, 'title': 'Installing apache, php, mysql, composer, git, and visual studio code', 'summary': 'Covers the installation process for apache, php, mysql, composer, git, and visual studio code on windows, including steps for configuring composer, git, and visual studio code, emphasizing the use of git bash and integrated terminal for efficiency.', 'duration': 172.113, 'highlights': ['The chapter covers the installation process for Apache, PHP, MySQL, Composer, Git, and Visual Studio Code on Windows. The chapter describes the installation process for essential development tools like Apache, PHP, MySQL, Composer, Git, and Visual Studio Code, providing a comprehensive guide for setting up the development environment.', 'Steps for configuring Composer, Git, and Visual Studio Code are included. The chapter includes detailed steps for configuring Composer, Git, and Visual Studio Code, ensuring that the installation and setup process is thorough and covers essential tools for development.', 'Emphasizes the use of Git Bash and integrated terminal for efficiency. The chapter emphasizes the importance of using Git Bash and the integrated terminal in Visual Studio Code for efficiency, highlighting the benefits of having the terminal and editor on the same screen to optimize workflow.']}, {'end': 400.456, 'start': 216.011, 'title': 'Setting up environment with vs code', 'summary': 'Demonstrates setting up the integrated terminal in vs code, adding git bash as an option, and customizing font sizes for terminal and editor, providing a more user-friendly environment.', 'duration': 184.445, 'highlights': ['The chapter demonstrates setting up the integrated terminal in VS Code, providing a more user-friendly environment.', 'It includes adding Git Bash as an option, enhancing the terminal functionality.', 'Customizing font sizes for terminal and editor, aiming to improve readability and user experience.']}], 'duration': 356.578, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/H3uRXvwXz1o/pics/H3uRXvwXz1o43878.jpg', 'highlights': ['The chapter provides a comprehensive guide for setting up the development environment, covering the installation process for essential development tools like Apache, PHP, MySQL, Composer, Git, and Visual Studio Code.', 'The chapter includes detailed steps for configuring Composer, Git, and Visual Studio Code, ensuring thorough installation and setup process for essential development tools.', 'The chapter emphasizes the importance of using Git Bash and the integrated terminal in Visual Studio Code for efficiency, highlighting the benefits of having the terminal and editor on the same screen to optimize workflow.', 'The chapter demonstrates setting up the integrated terminal in VS Code, providing a more user-friendly environment.', 'It includes adding Git Bash as an option, enhancing the terminal functionality.', 'Customizing font sizes for terminal and editor, aiming to improve readability and user experience.']}, {'end': 757.246, 'segs': [{'end': 485.934, 'src': 'heatmap', 'start': 418.377, 'weight': 0, 'content': [{'end': 425.838, 'text': 'And then we want to go into xamp slash htdocs, or wherever you want to set up, whatever your web root is.', 'start': 418.377, 'duration': 7.461}, {'end': 432.199, 'text': "OK, so now that we're here, we should be able to say Composer.", 'start': 429.218, 'duration': 2.981}, {'end': 442.261, 'text': "create-project laravel slash laravel, and I'm going to call it lsapp for laravel series app.", 'start': 433.695, 'duration': 8.566}, {'end': 452.509, 'text': 'All right, and that can take a little bit.', 'start': 450.548, 'duration': 1.961}, {'end': 457.613, 'text': "It'll probably take about two minutes or so, so I'll just pause this until that's done.", 'start': 452.529, 'duration': 5.084}, {'end': 460.055, 'text': "All right, guys, that's all set.", 'start': 458.794, 'duration': 1.261}, {'end': 461.216, 'text': "Let's go ahead and clear this.", 'start': 460.115, 'duration': 1.101}, {'end': 465.959, 'text': "And we're going to want to just change the directory to lsapp.", 'start': 462.657, 'duration': 3.302}, {'end': 469.742, 'text': "And we're going to add it as a project folder.", 'start': 467.761, 'duration': 1.981}, {'end': 471.523, 'text': "So right here, let's say Open Folder.", 'start': 469.762, 'duration': 1.761}, {'end': 481.23, 'text': "And then we'll go to XAMPP, htdocs, and what did I call it? What the heck is it? Oh, lsapp.", 'start': 471.723, 'duration': 9.507}, {'end': 485.934, 'text': 'OK So this is the entire Laravel folder structure.', 'start': 482.191, 'duration': 3.743}], 'summary': 'Setting up a laravel project named lsapp in xampp, taking about two minutes.', 'duration': 39.236, 'max_score': 418.377, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/H3uRXvwXz1o/pics/H3uRXvwXz1o418377.jpg'}, {'end': 551.061, 'src': 'embed', 'start': 519.597, 'weight': 4, 'content': [{'end': 521.138, 'text': "And that's obviously not what we want.", 'start': 519.597, 'duration': 1.541}, {'end': 523.178, 'text': 'This is a huge security issue.', 'start': 521.518, 'duration': 1.66}, {'end': 529.581, 'text': 'If we go to public, lsapp slash public, that actually shows the front end of our application.', 'start': 523.999, 'duration': 5.582}, {'end': 534.442, 'text': "Now, obviously, we don't want to have to go to slash public and also the security issue.", 'start': 530.241, 'duration': 4.201}, {'end': 538.404, 'text': "So what we have to do is create a virtual host that's going to point to this location.", 'start': 534.782, 'duration': 3.622}, {'end': 539.404, 'text': 'All right.', 'start': 538.424, 'duration': 0.98}, {'end': 542.385, 'text': 'So to do that, we need to edit two files.', 'start': 539.464, 'duration': 2.921}, {'end': 544.032, 'text': 'on our system.', 'start': 543.427, 'duration': 0.605}, {'end': 551.061, 'text': "So the first one's going to be in The C drive, it's going to be in your XAMPP and then Apache folder.", 'start': 544.112, 'duration': 6.949}], 'summary': "Addressing security issue by creating a virtual host to point to application's location.", 'duration': 31.464, 'max_score': 519.597, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/H3uRXvwXz1o/pics/H3uRXvwXz1o519597.jpg'}, {'end': 593.601, 'src': 'heatmap', 'start': 566.269, 'weight': 1, 'content': [{'end': 570.071, 'text': 'And the file we want to change is this vhost.conf file.', 'start': 566.269, 'duration': 3.802}, {'end': 571.913, 'text': "So let's see.", 'start': 570.772, 'duration': 1.141}, {'end': 574.434, 'text': "We'll just open it with VS Code.", 'start': 572.913, 'duration': 1.521}, {'end': 576.997, 'text': "And then we're going to go all the way down to the bottom.", 'start': 575.017, 'duration': 1.98}, {'end': 578.838, 'text': 'All of this is actually commented out.', 'start': 577.158, 'duration': 1.68}, {'end': 581.018, 'text': 'You can see these number signs commented out.', 'start': 578.938, 'duration': 2.08}, {'end': 585.5, 'text': 'And we want to add one of these, a virtual host entry.', 'start': 581.839, 'duration': 3.661}, {'end': 588.88, 'text': "So I'm going to copy this and go down here.", 'start': 585.56, 'duration': 3.32}, {'end': 593.601, 'text': 'And we want to uncomment the opening and closing tag.', 'start': 589.881, 'duration': 3.72}], 'summary': 'Adding a virtual host entry to vhost.conf file to uncomment the opening and closing tag.', 'duration': 27.332, 'max_score': 566.269, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/H3uRXvwXz1o/pics/H3uRXvwXz1o566269.jpg'}, {'end': 643.583, 'src': 'heatmap', 'start': 614.018, 'weight': 2, 'content': [{'end': 616.819, 'text': 'And then we want a server name, which you can call whatever you want.', 'start': 614.018, 'duration': 2.801}, {'end': 617.779, 'text': "It's just local.", 'start': 616.959, 'duration': 0.82}, {'end': 623.5, 'text': "So we're going to call this lsapp.dev.", 'start': 618.299, 'duration': 5.201}, {'end': 629.181, 'text': "Now, we should also add another entry before that that's going to just go to htdocs.", 'start': 623.64, 'duration': 5.541}, {'end': 632.762, 'text': "And we're going to say localhost.", 'start': 631.282, 'duration': 1.48}, {'end': 635.917, 'text': "and then we'll save it and close that up.", 'start': 634.195, 'duration': 1.722}, {'end': 641.141, 'text': "Now we need to edit one more file and it's very important that you open it as administrator.", 'start': 636.757, 'duration': 4.384}, {'end': 643.583, 'text': 'You open the text editor as administrator.', 'start': 641.241, 'duration': 2.342}], 'summary': 'Configuring local server with server name lsapp.dev and localhost entry to htdocs', 'duration': 29.565, 'max_score': 614.018, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/H3uRXvwXz1o/pics/H3uRXvwXz1o614018.jpg'}, {'end': 689.686, 'src': 'heatmap', 'start': 653.932, 'weight': 0.74, 'content': [{'end': 663.641, 'text': "if you're on windows, go to C drive windows and then, uh, where is it? System 32..", 'start': 653.932, 'duration': 9.709}, {'end': 667.442, 'text': 'and then drivers and then ETC.', 'start': 663.641, 'duration': 3.801}, {'end': 671.683, 'text': "if you're on Linux or Mac, just go right in your ETC folder all right.", 'start': 667.442, 'duration': 4.241}, {'end': 678.285, 'text': "now we want to change this so that we're viewing all files and we want to open up the dot host file.", 'start': 671.683, 'duration': 6.602}, {'end': 679.465, 'text': 'so this is what it should look like.', 'start': 678.285, 'duration': 1.18}, {'end': 681.726, 'text': "by default, we're going to add two things here.", 'start': 679.465, 'duration': 2.261}, {'end': 683.506, 'text': 'so we want to do 127.0.0.1, which is our local host.', 'start': 681.726, 'duration': 1.78}, {'end': 689.686, 'text': "We're going to set that to localhost.", 'start': 687.225, 'duration': 2.461}], 'summary': 'Update host file to include 127.0.0.1 and set it to localhost.', 'duration': 35.754, 'max_score': 653.932, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/H3uRXvwXz1o/pics/H3uRXvwXz1o653932.jpg'}, {'end': 723.396, 'src': 'embed', 'start': 694.087, 'weight': 3, 'content': [{'end': 701.329, 'text': 'And then we want our server name for the application, which is lsapp.dev, or whatever you put in your vhost.', 'start': 694.087, 'duration': 7.242}, {'end': 704.23, 'text': "All right, so we'll Control-S, save that.", 'start': 702.269, 'duration': 1.961}, {'end': 708.391, 'text': "If you didn't open it as administrator on Windows, it's not going to let you save it.", 'start': 704.73, 'duration': 3.661}, {'end': 709.411, 'text': 'So make sure you do that.', 'start': 708.431, 'duration': 0.98}, {'end': 710.971, 'text': "And then we'll close it up.", 'start': 710.051, 'duration': 0.92}, {'end': 714.032, 'text': 'And then the last thing we need to do is restart Apache.', 'start': 711.592, 'duration': 2.44}, {'end': 716.213, 'text': "So I'm going to open up my XAMPP panel.", 'start': 714.172, 'duration': 2.041}, {'end': 723.396, 'text': "And we're going to click on, for Apache, we're going to click stop.", 'start': 720.334, 'duration': 3.062}], 'summary': 'Configure server name lsapp.dev for the application and restart apache', 'duration': 29.309, 'max_score': 694.087, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/H3uRXvwXz1o/pics/H3uRXvwXz1o694087.jpg'}], 'start': 400.476, 'title': 'Setting up laravel project and configuring local server', 'summary': 'Covers setting up a laravel project with composer, creating a virtual host, and discusses security issues, along with configuring vhost.conf and host file for local server setup, leading to a successful setup at lsapp.dev.', 'chapters': [{'end': 565.769, 'start': 400.476, 'title': 'Setting up laravel project with composer', 'summary': 'Details the process of setting up a laravel project with composer, creating a virtual host to run the application, and points out the security issue with the default file structure, as well as the differences between laravel 5.4 and 5.3.', 'duration': 165.293, 'highlights': ["Creating a Laravel project with Composer The tutorial demonstrates the process of creating a Laravel project named 'lsapp' with Composer, which takes about two minutes to complete.", 'Explaining the structure of Laravel 5.4 The speaker briefly mentions the differences between the folder structure of Laravel 5.4 and 5.3, hinting at a more detailed explanation later in the tutorial.', 'Addressing security issues with default file structure The chapter emphasizes the security issue with the default file structure of Laravel, pointing out the exposure of files and folders and the need to create a virtual host to resolve this issue.']}, {'end': 757.246, 'start': 566.269, 'title': 'Configuring vhost.conf and host file for local server setup', 'summary': 'Explains the process of configuring the vhost.conf file and host file to set up a local server, including adding a virtual host entry, modifying the host file, and restarting apache, leading to successful setup of the local server at lsapp.dev.', 'duration': 190.977, 'highlights': ['The process involves adding a virtual host entry in the vhost.conf file, specifying the server name lsapp.dev and the document root as lsapp/public. Adding a virtual host entry in the vhost.conf file with the server name and document root is a key step in configuring the local server setup.', 'Modifying the host file by adding 127.0.0.1 as localhost and setting the server name lsapp.dev. The modification of the host file by adding the localhost and the server name lsapp.dev is crucial for the local server setup.', 'Restarting Apache using the XAMPP panel to apply the configuration changes. Restarting Apache using the XAMPP panel is the final step to ensure the successful implementation of the configuration changes.']}], 'duration': 356.77, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/H3uRXvwXz1o/pics/H3uRXvwXz1o400476.jpg', 'highlights': ["Creating a Laravel project named 'lsapp' with Composer takes about two minutes to complete.", 'Adding a virtual host entry in the vhost.conf file with the server name and document root is a key step in configuring the local server setup.', 'The modification of the host file by adding the localhost and the server name lsapp.dev is crucial for the local server setup.', 'Restarting Apache using the XAMPP panel is the final step to ensure the successful implementation of the configuration changes.', 'The chapter emphasizes the security issue with the default file structure of Laravel, pointing out the exposure of files and folders and the need to create a virtual host to resolve this issue.']}, {'end': 1183.357, 'segs': [{'end': 800.373, 'src': 'embed', 'start': 773.205, 'weight': 0, 'content': [{'end': 782.295, 'text': "So as we said before, Laravel is an MVC framework, model view controller, so there's specific areas for all of those things.", 'start': 773.205, 'duration': 9.09}, {'end': 788.301, 'text': "If we open up the app folder, You'll see that there's actually a user.php file.", 'start': 782.855, 'duration': 5.446}, {'end': 790.483, 'text': 'This is actually a model.', 'start': 788.341, 'duration': 2.142}, {'end': 792.885, 'text': 'All your models are going to go in the app folder.', 'start': 790.623, 'duration': 2.262}, {'end': 800.373, 'text': "Now you can create a subfolder called models if you want, but if you don't have many, you can just put them right in like this.", 'start': 793.286, 'duration': 7.087}], 'summary': 'Laravel is an mvc framework with models placed in the app folder.', 'duration': 27.168, 'max_score': 773.205, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/H3uRXvwXz1o/pics/H3uRXvwXz1o773205.jpg'}, {'end': 867.176, 'src': 'embed', 'start': 841.125, 'weight': 2, 'content': [{'end': 845.307, 'text': 'And if we want to create a controller, we could manually create the file here.', 'start': 841.125, 'duration': 4.182}, {'end': 847.148, 'text': 'We could manually create a model.', 'start': 845.647, 'duration': 1.501}, {'end': 850.71, 'text': 'But artisan is a better way to do it.', 'start': 847.968, 'duration': 2.742}, {'end': 852.151, 'text': "It'll actually create the folder.", 'start': 850.73, 'duration': 1.421}, {'end': 854.252, 'text': "It'll create the class.", 'start': 852.551, 'duration': 1.701}, {'end': 858.714, 'text': "It'll include the dependencies, the namespace and all that.", 'start': 854.332, 'duration': 4.382}, {'end': 867.176, 'text': 'Now, when you see namespace here, this basically gives this class or this file an identifier.', 'start': 859.954, 'duration': 7.222}], 'summary': 'Using artisan to create a controller and model is more efficient, as it automatically sets up the folder, class, and dependencies.', 'duration': 26.051, 'max_score': 841.125, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/H3uRXvwXz1o/pics/H3uRXvwXz1o841125.jpg'}, {'end': 919.765, 'src': 'embed', 'start': 893.491, 'weight': 3, 'content': [{'end': 899.877, 'text': "OK, so everything that's imported from illuminate is imported from the Laravel core system.", 'start': 893.491, 'duration': 6.386}, {'end': 903.099, 'text': "OK, and we'll get more into that later.", 'start': 900.357, 'duration': 2.742}, {'end': 906.582, 'text': 'now the views are going to be in the resources folder.', 'start': 903.78, 'duration': 2.802}, {'end': 912.046, 'text': "you'll see a folder called views and there's a welcome.blade.php file.", 'start': 906.582, 'duration': 5.464}, {'end': 915.329, 'text': 'so all laravel views are going to use the blade template engine.', 'start': 912.046, 'duration': 3.283}, {'end': 919.765, 'text': "So it's basically HTML with some dynamic properties.", 'start': 916.141, 'duration': 3.624}], 'summary': 'Laravel uses blade template engine for views, stored in resources/views folder.', 'duration': 26.274, 'max_score': 893.491, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/H3uRXvwXz1o/pics/H3uRXvwXz1o893491.jpg'}, {'end': 972.342, 'src': 'embed', 'start': 944.057, 'weight': 4, 'content': [{'end': 949.701, 'text': 'In Laravel 5.3, I believe there was a routes.php file in the HTTP folder.', 'start': 944.057, 'duration': 5.644}, {'end': 954.945, 'text': 'So with 5.4, we have a folder called routes now, not just a file.', 'start': 950.482, 'duration': 4.463}, {'end': 962.57, 'text': 'And then we have certain files for if we wanted to create a RESTful API, we could bring in that middleware here.', 'start': 955.505, 'duration': 7.065}, {'end': 972.342, 'text': 'and anything we put in here would be api slash, whatever, but the main routes file is going to be this web.php file All right,', 'start': 963.431, 'duration': 8.911}], 'summary': 'Laravel 5.4 introduces a folder for routes instead of a file, with separate files for restful api and a main routes file web.php', 'duration': 28.285, 'max_score': 944.057, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/H3uRXvwXz1o/pics/H3uRXvwXz1o944057.jpg'}, {'end': 1151.41, 'src': 'embed', 'start': 1105.672, 'weight': 6, 'content': [{'end': 1107.975, 'text': "we're going to get into that later.", 'start': 1105.672, 'duration': 2.303}, {'end': 1111.499, 'text': 'dot env is where you want to put your database credentials.', 'start': 1107.975, 'duration': 3.524}, {'end': 1118.667, 'text': "so right here you see, we're using mysql, so we would put our database name and username and all that stuff in here.", 'start': 1111.499, 'duration': 7.168}, {'end': 1120.429, 'text': "all right, but we'll get to that later.", 'start': 1118.667, 'duration': 1.762}, {'end': 1127.664, 'text': "If you wanted to write some tests, you have your unit test folder here, but we're not going to get into that.", 'start': 1122.574, 'duration': 5.09}, {'end': 1130.108, 'text': "I think that's about it.", 'start': 1128.746, 'duration': 1.362}, {'end': 1132.954, 'text': "That's really the most important things that you need to know.", 'start': 1130.168, 'duration': 2.786}, {'end': 1135.557, 'text': 'public folder.', 'start': 1134.276, 'duration': 1.281}, {'end': 1141.002, 'text': 'so if we go to public, this is where, for instance, our CSS files go and all that.', 'start': 1135.557, 'duration': 5.445}, {'end': 1144.284, 'text': "now this if we look at app CSS, you can see it's a mess.", 'start': 1141.002, 'duration': 3.282}, {'end': 1145.605, 'text': "that's because this is all.", 'start': 1144.284, 'duration': 1.321}, {'end': 1151.41, 'text': "it's all minified and it's being compiled from our resources assets folder.", 'start': 1145.605, 'duration': 5.805}], 'summary': 'Key points include setting up database credentials in .env, organizing css files in public folder, and minifying css in assets folder.', 'duration': 45.738, 'max_score': 1105.672, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/H3uRXvwXz1o/pics/H3uRXvwXz1o1105672.jpg'}, {'end': 1183.357, 'src': 'embed', 'start': 1168.584, 'weight': 8, 'content': [{'end': 1176.671, 'text': "all right, so in the next video, we're going to start to build our application, we're going to start to work with routes and controllers and all that.", 'start': 1168.584, 'duration': 8.087}, {'end': 1177.131, 'text': 'all right.', 'start': 1176.671, 'duration': 0.46}, {'end': 1178.893, 'text': 'so please subscribe.', 'start': 1177.131, 'duration': 1.762}, {'end': 1183.357, 'text': "if you're not, please leave a like if you liked this, and i will see you in the next video.", 'start': 1178.893, 'duration': 4.464}], 'summary': 'Next video will cover building application, working with routes and controllers. subscribe and like if you enjoyed.', 'duration': 14.773, 'max_score': 1168.584, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/H3uRXvwXz1o/pics/H3uRXvwXz1o1168584.jpg'}], 'start': 757.727, 'title': 'Laravel file structure and configuration', 'summary': 'Explains the laravel file structure, highlighting the organization of models, controllers, views, and routes, and provides an explanation of important laravel folders like config, app, public, and their respective purposes, including setting up database credentials and css file management.', 'chapters': [{'end': 1015.26, 'start': 757.727, 'title': 'Laravel mvc file structure', 'summary': 'Explains the laravel file structure, including the organization of models, controllers, views, and routes, highlighting the use of the blade template engine and the web.php file for routes.', 'duration': 257.533, 'highlights': ["Laravel follows an MVC framework, with specific areas for models, views, and controllers. Laravel follows an MVC framework, with specific areas for models, views, and controllers, organizing them in the 'app' and 'app/http/controllers' folders.", "The 'app' folder contains the models, and the 'app/http/controllers' contains the controllers, including the auth controllers for login, register, reset password, and forgot password. The 'app' folder contains the models, and the 'app/http/controllers' contains the controllers, including the auth controllers for login, register, reset password, and forgot password.", 'Artisan is a better way to create controllers and models, as it automates the process by creating the folder, class, and including dependencies and namespace. Artisan is a better way to create controllers and models, as it automates the process by creating the folder, class, and including dependencies and namespace.', "The views in Laravel are located in the 'resources' folder and use the Blade template engine for dynamic properties, including if statements, loops, and variables. The views in Laravel are located in the 'resources' folder and use the Blade template engine for dynamic properties, including if statements, loops, and variables.", "The 'web.php' file is the main routes file in Laravel, handling requests and directing to specific views, following a simple structure and syntax. The 'web.php' file is the main routes file in Laravel, handling requests and directing to specific views, following a simple structure and syntax."]}, {'end': 1183.357, 'start': 1015.26, 'title': 'Understanding laravel folders and configuration', 'summary': 'Provides an explanation of important laravel folders like config, app, public, and their respective purposes, including setting up database credentials and css file management, preparing for building an application in the next video.', 'duration': 168.097, 'highlights': ['Explanation of Laravel folders like config, app, public and their purposes The transcript provides an explanation of important Laravel folders like config, app, public, and their respective purposes.', 'Setting up database credentials The chapter discusses the usage of the dot env file to set up database credentials, such as database name and username.', 'CSS file management and asset compilation The transcript explains the usage of the public folder for managing CSS files and mentions the compilation of assets using tools like SAS.', 'Preparation for building an application in the next video The chapter concludes with a mention of preparing to build an application in the next video, working with routes, controllers, and encourages viewers to subscribe and like the content.']}], 'duration': 425.63, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/H3uRXvwXz1o/pics/H3uRXvwXz1o757727.jpg', 'highlights': ['Laravel follows an MVC framework, organizing models, views, and controllers in specific folders.', "The 'app' folder contains models, and 'app/http/controllers' contains controllers, including auth controllers.", 'Artisan automates the process of creating controllers and models, including folder creation and namespace inclusion.', "Views in Laravel are located in the 'resources' folder and use the Blade template engine for dynamic properties.", "The 'web.php' file is the main routes file in Laravel, handling requests and directing to specific views.", 'Explanation of important Laravel folders like config, app, public, and their respective purposes.', 'Usage of the dot env file to set up database credentials, such as database name and username.', 'Explanation of using the public folder for managing CSS files and asset compilation using tools like SAS.', 'Preparation for building an application in the next video, working with routes, controllers, and encouraging viewers to subscribe and like the content.']}], 'highlights': ['XAMPP provides Apache, PHP, and MySQL for the Laravel environment, and the speaker already has it installed.', 'The chapter provides a comprehensive guide for setting up the development environment, covering the installation process for essential development tools like Apache, PHP, MySQL, Composer, Git, and Visual Studio Code.', "Creating a Laravel project named 'lsapp' with Composer takes about two minutes to complete.", 'Adding a virtual host entry in the vhost.conf file with the server name and document root is a key step in configuring the local server setup.', 'Laravel follows an MVC framework, organizing models, views, and controllers in specific folders.']}