Coding

Laravel Homestead Tutorial – #1 Introduction

  • 00:00:01 hi everyone what comeback what I read as
  • 00:00:04 a comment below a couple of videos is
  • 00:00:07 that some of you would be interested in
  • 00:00:10 seeing how to set up larval homestead
  • 00:00:13 and I thought this would be a great idea
  • 00:00:15 to make a video about you
  • 00:00:17 so the roadmap for this video and the
  • 00:00:20 next videos is that in this video I will
  • 00:00:22 explain what level homestead is next
  • 00:00:25 with you we will install it and in the
  • 00:00:27 last with you I will dive a little bit
  • 00:00:29 deeper into how to configure it and how
  • 00:00:32 we can use it and how we can adjust it
  • 00:00:35 to our needs so what is level homestead
  • 00:00:39 lateral hopes that in the end is a box
  • 00:00:42 for vagrant and now what is vagrant
  • 00:00:46 vagrant is a virtual machine'
  • 00:00:48 provisioning service and what is this
  • 00:00:51 well a virtual machine basically is a
  • 00:00:53 computer running on your computer to put
  • 00:00:56 it simply it has its own operating
  • 00:00:58 system it has its own resources which
  • 00:01:03 are assigned to this virtual machine and
  • 00:01:05 we may use it like a well like a
  • 00:01:08 computer like our laptop for example
  • 00:01:10 just that it runs inside our main
  • 00:01:14 operating system or main machine have
  • 00:01:17 you can use virtual machines for many
  • 00:01:18 tasks because while we have this clear
  • 00:01:21 separation and we can try out things
  • 00:01:23 there that won't well destroy our main
  • 00:01:26 computer because if we mess something up
  • 00:01:28 well we just finish we shut down the
  • 00:01:31 words from a seed machine and start up a
  • 00:01:32 new one for example now this is the
  • 00:01:35 point where way current comes in if we
  • 00:01:37 start up a virtual machine if we create
  • 00:01:39 one we have to well install the
  • 00:01:42 operating system Linux for example and
  • 00:01:45 we also if we want to use it for web
  • 00:01:47 development we have to install PHP a
  • 00:01:50 webserver my sequel we have to configure
  • 00:01:53 everything and so on the job where grant
  • 00:01:58 does here is that it allows us to kind
  • 00:02:01 of define a basic configuration so
  • 00:02:03 called boxes which include the operating
  • 00:02:06 system and a couple of other programs
  • 00:02:09 like for example a web server like
  • 00:02:11 Apache or engines or a
  • 00:02:14 P interpreter that are already installed
  • 00:02:16 on that and using way current we can
  • 00:02:19 then quickly start up new virtual
  • 00:02:21 machines that use this default
  • 00:02:23 configuration and that of course has the
  • 00:02:25 great advantage that if we shut down a
  • 00:02:28 virtual machine and start a new one it
  • 00:02:30 is exactly the same as the last one was
  • 00:02:32 and for web development this is of
  • 00:02:34 course great because we can ever use one
  • 00:02:39 virtual machine per project though that
  • 00:02:41 will take up quite some space on your
  • 00:02:43 computer or we have one virtual machine
  • 00:02:46 for all our projects but nonetheless if
  • 00:02:49 we say once you shut down to free up
  • 00:02:53 resources or whatever then well we can't
  • 00:02:57 just restart it with the same settings
  • 00:03:00 as before now that being said of course
  • 00:03:02 while destroying shutting down the
  • 00:03:05 virtual machine beta database and so on
  • 00:03:08 will be lost however it is possible and
  • 00:03:11 this is where homestead also comes in to
  • 00:03:14 configure for example which databases we
  • 00:03:17 want to have when starting up our
  • 00:03:19 virtual machine and using label
  • 00:03:21 migrations then for example we can
  • 00:03:23 quickly well get the database back into
  • 00:03:26 the state that was before for our
  • 00:03:28 development purposes so does the
  • 00:03:30 advantage that we have thus clear
  • 00:03:32 separation from our development
  • 00:03:34 environment configurations the server
  • 00:03:37 config and so on we need for that and
  • 00:03:39 our local computer or laptop or whatever
  • 00:03:42 that we don't have to spoil our own
  • 00:03:45 machine with a couple of different web
  • 00:03:48 servers or whatever and we have to
  • 00:03:49 separation also it's quickly possible to
  • 00:03:53 well use our pre-configured boxes or our
  • 00:03:57 boxes then homestead to get our features
  • 00:04:01 like at our web server or the same web
  • 00:04:03 server with a different configuration
  • 00:04:04 and this is really powerful so this is
  • 00:04:07 way grunt now as I already said
  • 00:04:09 homestead is just a box a bundled
  • 00:04:13 configuration so to say which wavelet
  • 00:04:15 can use to set up a certain machine
  • 00:04:19 which uses the software level homestead
  • 00:04:23 comes with and what is the software lets
  • 00:04:26 how look at the official
  • 00:04:27 little page in there the homestead
  • 00:04:30 section now as you see there what we do
  • 00:04:33 have is this soft word Ubuntu 1404 as
  • 00:04:37 the operating system get PHP seven and
  • 00:04:40 Ching's as a server my sequel and a
  • 00:04:43 bunch of other useful server software
  • 00:04:45 and this is of course great because this
  • 00:04:48 is a perfect web development environment
  • 00:04:51 out of the blocks hit it a little at
  • 00:04:53 liberality so this is really great and
  • 00:04:56 other questions how do we set all these
  • 00:04:59 things up and this will be targeted in
  • 00:05:02 the next video