I'm switching out my Xampp dev environment to Docker using Laravel Sail. Watch to find out more about my Laravel Sail Dev Environment on a Windows Machine using WSL and Ubuntu on E drive. =================================================== 📓 Video Chapters: 0:03Xampp Vs. Docker (story time) 02:58 Introducing Docker 03:23 Different Laravel Installations 04:17 Installing Laravel Sail on Existing Project 08:25 Sail Up 12:48 Database Migration 13:44 Beekeeper Studio as the Database 16:20 Mailhog for Testing Mailables 17:40 Sail Stop 18:44 Other Useful Sail/Docker Commands =================================================== ✔️ Click to subscribe: ruclips.net/channel/UCGRi3eupIN5rOP_tDLxLs2w =================================================== ✔️ GITHUB: github.com/designatedcoder =================================================== 🎦 Supplemental Videos: Learn Web Code: ruclips.net/video/2TKh3aokgec/видео.html Maurauderz Gears & Gadgets: ruclips.net/video/AyEw7JsHt9I/видео.html =================================================== 📔 Resource Documents: Docker Desktop: www.docker.com/products/docker-desktop Stack Exchange Article: superuser.com/questions/1572834/is-there-any-ways-to-install-wsl-on-non-c-drive Docker Commands Article: linuxize.com/post/how-to-remove-docker-images-containers-volumes-and-networks/ Beekeeper Studio: www.beekeeperstudio.io =================================================== 📷 Video images provided by: Ashim D’Silva on Unsplash unsplash.com/s/photos/chaos?CopyText Sebastiaan Chia on Unsplash unsplash.com/s/photos/apple-products?CopyText Matthew Lancaster on Unsplash unsplash.com/s/photos/homestead?CopyText Jeff Sheldon on Unsplash unsplash.com/s/photos/neat?CopyText Matthew Hamilton on Unsplash unsplash.com/s/photos/under-construction-page?CopyText =================================================== #designatedcoder #laravelsail #docker
Thanks a lot! Exactly what i needed right now! :) I think to make the sail command global on windows, you just can use vim for it: in your preferred terminal type: vim ~/.zshrc then in vim just insert this alias: alias sail="bash vendor/bin/sail" and then press ESC and write ":wq" (for write and quit)
Hey there AverageAtheist. Thanks for watching. Welcome to the channel! 😎 I will give it a try again. When I opened up vscode with ubuntu it wasn't saved globally within the ubuntu env. Not a huge deal within a session but over a few days it gets annoying. Glad you got yours up and running!
Hey there @ghaliapriyaldi8567. Thanks for watching. Welcome to the channel! 😎 I have laravel installed globally on my system so laravel new was in a folder on my hard drive. I didn't show this as this video was not about wsl but about using sail with docker. I pointed out resources on how to set wsl up to give you ideas on how to do it yourself. Hope this helps and good luck to you.
I'm new to docker and for whatever reason, it takes up half of my ram....is that normal? On my laptop I had 8GB and it took about half. On my desktop, I have 16GB of ram and it does the same...can you help me out ? ( well, assuming that's not normal)
Hey there @genova9901. Thanks for watching. Welcome to the channel! 😎 I'm still by no means a docker pro so I'm not sure if it's normal or not. I have tried newer versions of docker on an older laptop that seem to just not even want to install but my pc has 64gb of ram so it handles pretty much everything I've thrown at it so far. I have only been using it for the tuts I put on here and I use neovim on my laptop to interact with my projects. A quick search of forums showed people off and on have had similar issues. It might be worth it take a look at installing docker without the desktop in you WSL and just issue commands from the terminal. The desktop just gives a graphical interface to see what's going on but you can call docker commands to get the same info. It would be much less strain on your system. I unfortunately do not have a video on this as it hasn't really come up for me. It's a shame when one app absorbs so much in resources to essentially just look pretty. Anyway, hope this helps and good luck to you.
Hey there Goloso. Thanks for watching. Welcome to the channel! 😎 Thanks for that, I managed to get it working using the zshrc file. Appreciate the help!
Hey there Ian Clemence. Thanks for watching. Welcome to the channel! 😎 No I didn't. When I whipped up the project in the container it built up the entire environment including php.
Hey there Vishal Kumar. Thanks for watching. Welcome to the channel! 😎 No, xampp is only a dev environment as is docker. Jetstream and livewire are packages that can be installed on the dev environment. The composer create-project laravel/laravel example-app command that you would use for xampp is essentially the same command as this command to whip up a Laravel project for docker: curl -s "laravel.build/example-app" | bash. This would mean a manual install of your jetstream packages. Hope this helps and good luck to you.
i was wondering.. all good and stuff with docker and sail.. but what about development behind ssl/https? some features require it but how do you obtain it with this sail setup?
Hey there Giacomo Garavaglia. Thanks for watching. Welcome to the channel! 😎 I've not had a need for this process so I'm not sure I would be the best to ask on this. I think you might have to create alternate names per project for some services that overlap. You can look up examples of this that should point you in the right direction. Hope this helps and good luck to you.
Hey there Khurram. Thanks for watching. Welcome to the channel! 😎 That's strange, it loads up quickly for me. Is your system able to handle docker? Does it do that with all projects?
I'm not a Docker pro just yet so I'm not really sure I can answer your question. On my laptop it runs slow if at all in development and on my pc it works well. Maybe do a google search and see if it's a common problem?
@@khurram4165 Wow i was the Employee of The Next Idea and you was my senior and I think you should increase your ram 8 GB RAM is Less. same problem with me i will increase my RAM. But one problem with me i want view tables like MySQL PHP myadmin i do not know. How he is making the connection with database
Hey there latlov. Thanks for watching. Welcome to the channel! 😎 And thanks for the timestamp. The rest of the timestamps are in the description and pinned comment so that you can navigate to the most relevant parts for you.
Hey there @frans7671. Thanks for watching. Welcome to the channel! 😎 I can't speak for everyone but as for myself, I haven't tried it. Mysql has been my go to for ages. That's not to say it isn't possible. I know that using Laravel Homestead it is possible so I don't see why it wouldn't work for Sail. You could look up how to set up mysql for the docker-compose yaml and then also make changes to your .env before you run the sail up command. Hope this helps and good luck to you!
I'm switching out my Xampp dev environment to Docker using Laravel Sail. Watch to find out more about my Laravel Sail Dev Environment on a Windows Machine using WSL and Ubuntu on E drive.
===================================================
📓 Video Chapters:
0:03Xampp Vs. Docker (story time)
02:58 Introducing Docker
03:23 Different Laravel Installations
04:17 Installing Laravel Sail on Existing Project
08:25 Sail Up
12:48 Database Migration
13:44 Beekeeper Studio as the Database
16:20 Mailhog for Testing Mailables
17:40 Sail Stop
18:44 Other Useful Sail/Docker Commands
===================================================
✔️ Click to subscribe: ruclips.net/channel/UCGRi3eupIN5rOP_tDLxLs2w
===================================================
✔️ GITHUB: github.com/designatedcoder
===================================================
🎦 Supplemental Videos:
Learn Web Code: ruclips.net/video/2TKh3aokgec/видео.html
Maurauderz Gears & Gadgets: ruclips.net/video/AyEw7JsHt9I/видео.html
===================================================
📔 Resource Documents:
Docker Desktop: www.docker.com/products/docker-desktop
Stack Exchange Article: superuser.com/questions/1572834/is-there-any-ways-to-install-wsl-on-non-c-drive
Docker Commands Article: linuxize.com/post/how-to-remove-docker-images-containers-volumes-and-networks/
Beekeeper Studio: www.beekeeperstudio.io
===================================================
📷 Video images provided by:
Ashim D’Silva on Unsplash
unsplash.com/s/photos/chaos?CopyText
Sebastiaan Chia on Unsplash
unsplash.com/s/photos/apple-products?CopyText
Matthew Lancaster on Unsplash
unsplash.com/s/photos/homestead?CopyText
Jeff Sheldon on Unsplash
unsplash.com/s/photos/neat?CopyText
Matthew Hamilton on Unsplash
unsplash.com/s/photos/under-construction-page?CopyText
===================================================
#designatedcoder #laravelsail #docker
Thanks, great for motivated to learn something new..👍
No worries, R. Arya Herro K. Glad you're enjoying the channel! 😎
The first laravel video with a professional delivery style
Hey there @mohamedabdelsattar3266. Thanks for watching. Welcome to the channel! 😎
Just spent 2 days converting myself before I see this video.
Took a lot of work but I finally have it set up nicely.
Hey there Josh. Thanks for watching. Welcome to the channel! 😎 Glad you got it up and running!
I love the video. The way you explain in detail of how you got to the solution is beautiful.
Hey there @mnchabel8402. Thanks for watching. Welcome to the channel! 😎
Love the simplicity that Laravel Sail adds. 👍
Hey there code with Susan. Thanks for watching. Welcome to the channel! 😎
Great content! I'm loving how you deliver it! Thank you very much for all your effort. ❤️
Hey there Gabriel Silva. Thanks for watching. Welcome to the channel! 😎
This is exactly what I needed! Thanks so much!
Hey there Karen M. Thanks for watching. Welcome to the channel! 😎 Glad it worked out for you!
Thanks a lot! Exactly what i needed right now! :)
I think to make the sail command global on windows, you just can use vim for it:
in your preferred terminal type:
vim ~/.zshrc
then in vim just insert this alias:
alias sail="bash vendor/bin/sail"
and then press ESC and write ":wq" (for write and quit)
Hey there AverageAtheist. Thanks for watching. Welcome to the channel! 😎 I will give it a try again. When I opened up vscode with ubuntu it wasn't saved globally within the ubuntu env. Not a huge deal within a session but over a few days it gets annoying. Glad you got yours up and running!
Thank you Designated Coder
love your voice🌺
Hey there jesse Nwaigwe. Thanks for watching. Welcome to the channel! 😎
This helped a lot!
Hey there William. Thanks for watching. Welcome to the channel! 😎
i lost at 7:20, how can you bring up wsl at the current project, where dis you set the blog_test?
Hey there @ghaliapriyaldi8567. Thanks for watching. Welcome to the channel! 😎 I have laravel installed globally on my system so laravel new was in a folder on my hard drive. I didn't show this as this video was not about wsl but about using sail with docker. I pointed out resources on how to set wsl up to give you ideas on how to do it yourself. Hope this helps and good luck to you.
I'm new to docker and for whatever reason, it takes up half of my ram....is that normal?
On my laptop I had 8GB and it took about half. On my desktop, I have 16GB of ram and it does the same...can you help me out ? ( well, assuming that's not normal)
Hey there @genova9901. Thanks for watching. Welcome to the channel! 😎 I'm still by no means a docker pro so I'm not sure if it's normal or not. I have tried newer versions of docker on an older laptop that seem to just not even want to install but my pc has 64gb of ram so it handles pretty much everything I've thrown at it so far. I have only been using it for the tuts I put on here and I use neovim on my laptop to interact with my projects. A quick search of forums showed people off and on have had similar issues. It might be worth it take a look at installing docker without the desktop in you WSL and just issue commands from the terminal. The desktop just gives a graphical interface to see what's going on but you can call docker commands to get the same info. It would be much less strain on your system. I unfortunately do not have a video on this as it hasn't really come up for me. It's a shame when one app absorbs so much in resources to essentially just look pretty. Anyway, hope this helps and good luck to you.
to make the alias permanent you have you add it to the zsh(in your case) config file, make the alias and export it.
Hey there Goloso. Thanks for watching. Welcome to the channel! 😎 Thanks for that, I managed to get it working using the zshrc file. Appreciate the help!
After installing docker for the first time in your pc, did you also have to install php before creating the laravel app? Or how did you go about it?
Hey there Ian Clemence. Thanks for watching. Welcome to the channel! 😎 No I didn't. When I whipped up the project in the container it built up the entire environment including php.
So do I still need xampp and composer if i want to use jetstream + livewire package
Hey there Vishal Kumar. Thanks for watching. Welcome to the channel! 😎 No, xampp is only a dev environment as is docker. Jetstream and livewire are packages that can be installed on the dev environment.
The composer create-project laravel/laravel example-app command that you would use for xampp is essentially the same command as this command to whip up a Laravel project for docker: curl -s "laravel.build/example-app" | bash.
This would mean a manual install of your jetstream packages. Hope this helps and good luck to you.
i was wondering.. all good and stuff with docker and sail.. but what about development behind ssl/https? some features require it but how do you obtain it with this sail setup?
Hey there, ZFG.Shinzoke! I'm not really sure as I've just barely started using docker. Have you tried searching online for this setup?
@@DesignatedCoder hehe well i did :) currently using a customized dev environment based of Osteel's Blog ;)
What happen if I want to work on two project at the same time? How can I reach both if both containers expose the same ports?
Hey there Giacomo Garavaglia. Thanks for watching. Welcome to the channel! 😎 I've not had a need for this process so I'm not sure I would be the best to ask on this. I think you might have to create alternate names per project for some services that overlap. You can look up examples of this that should point you in the right direction. Hope this helps and good luck to you.
what are the prerequisites for a laravel project? PHP only?
Hey there DT B. Thanks for watching. Welcome to the channel! 😎 Laravel is a PHP framework
Nice content 👍. Can you make a video about how to push a docker project to the GitHub.
Thank you
Hey there Honey Syal. Thanks for watching. Welcome to the channel! 😎 Great idea! I'll add it to the list of future videos.
when running site from docker page loads very slowly
Hey there Khurram. Thanks for watching. Welcome to the channel! 😎 That's strange, it loads up quickly for me. Is your system able to handle docker? Does it do that with all projects?
@@DesignatedCoder i don't know about that it my first time using docker and sail
I'm not a Docker pro just yet so I'm not really sure I can answer your question. On my laptop it runs slow if at all in development and on my pc it works well. Maybe do a google search and see if it's a common problem?
@@DesignatedCoder ok I will look into it to find a solution
@@khurram4165 Wow i was the Employee of The Next Idea and you was my senior and
I think you should increase your ram 8 GB RAM is Less.
same problem with me i will increase my RAM.
But one problem with me i want view tables like MySQL PHP myadmin i do not know.
How he is making the connection with database
4:16 inicio
Hey there latlov. Thanks for watching. Welcome to the channel! 😎 And thanks for the timestamp. The rest of the timestamps are in the description and pinned comment so that you can navigate to the most relevant parts for you.
Easiest way is to add phpmyadmin to the docker compose file
Hey there jackelofnar. Thanks for watching. Welcome to the channel! 😎 Easiest way to what?
Has anyone used Laravel Sail with MongoDB?
Hey there @frans7671. Thanks for watching. Welcome to the channel! 😎
I can't speak for everyone but as for myself, I haven't tried it. Mysql has been my go to for ages. That's not to say it isn't possible. I know that using Laravel Homestead it is possible so I don't see why it wouldn't work for Sail. You could look up how to set up mysql for the docker-compose yaml and then also make changes to your .env before you run the sail up command.
Hope this helps and good luck to you!
Me rompe el corazón hacer este cambio pero es necesario
Hey there @Salomonkein1992. Thanks for watching. Welcome to the channel! 😎
Welcome to the dark side...