How to develop a simple Laravel package locally
Вставка
- Опубліковано 16 вер 2024
- In this 15 minute video, I'll show you how I developed a simple Laravel wrapper package that makes calls to an external API.
Directly support these videos: / aschmelyun
You'll learn how to:
- Structure a basic Laravel package
- Set up a service provider and associated class
- Install the package locally to a Laravel app with composer
- Create a config file to store user-defined values
Docker-compose script for setting up a fast, local Laravel environment: github.com/asc...
Guzzle documentation: docs.guzzlephp....
Quickmetrics documentation: app.quickmetri...
Follow me on Twitter! / aschmelyun
This is most useful video after three years also. Thank You.
Excelent video, well explained, good pace, straight to the point.
This is exactly what I was looking for.
Good content and very condensed without all the mumbo jumbo. One request, please increase the font size and have a lighter theme for your IDE. Some of the text in darker color are hard to read.
Great laravel pedagogy,you should upload more frequently. Thanks for sharing.
You got it! More videos are coming soon.
The best explanation. Thank you.
You earned a subscription here. I love the way you teach. Whooo!!!!!
I am using your video to do my own package... Thank you for this.
Thanks a million, you're great
fast, simple, informative, thank you
Great video, thank you... any chance of a follow up showing how to use phpunit to make tests for a package like this?
Perfect tutorial. Thanks for share !
really helpful video, thank you,
Thank you very much dude!
thank you for this!
Exceptional video! thanks
Very cool, how do you record the videos? Are you really typing that fast ? Great job !
The videos are recorded with OBS, and then edited with iMovie. For the most part, it's my normal typing speed, although there are some parts where it's sped up by about 3x.
@@aschmelyun Thanks for the answer, so understand now that you record and then add the voice over :) the result is very cool . hope to see more !
Thank you for this tutorial.
Nice stuff.. can you share your IDE set up? it is pretty cool.
When I create the repositories key in the composer.json my IDE screams the following
Should have at least one of the following property sets: properties 'type' = composer, 'url', properties 'type', 'url', properties 'type' = path, 'url', properties 'type' = artifact, 'url', properties 'type' = pear, 'url', or properties 'type' = package, 'package'
It wants to add type and url to the require and requireDev blocks....wut why
you should upload a git repository of the tutorial in case someone get's lost and can easily compare code by copy and pasting.. sometimes is not so evident when you have to read.
You're definitely right! If you check out github.com/aschmelyun/docker-compose-laravel it's the same layout and docker-compose.yml file from this video.
@@aschmelyun No, it isn't.
Where would I go to find a few good examples of a Laravel package?
wow its quentin watt one of the best teacher :)
I think you know where after this time 😆
Great video ,it's really helpful!
So good Andrew, thanks. #LoveYourWork
Awesome video, love stuff like this! 👌
Great work. Thank you
great work!
very useful
thanks
awesome and powerful tuts!
Good one but my question is can on create a laravel package that can render some Vue component like creating a package that can work in inertiajs
Hi Andrew
I follow your instructions but it could not install my package in local, should I add it on Github and then run this composer update or required?
Nice Video!
Great tutorial! Thanks, subscribed on you
Can all the videos also be in 480p? It's 360p or 1080p.
Your screen is blurred can't see what you're typing especially terminal
the font size is too small...
its very nice and understanding to me, and what if we are building a package and pushing every change to github (main), and we want to test that package in seperate freshly installed laravel project, how can we do that, I'm confused. Actually, I'm testing thoroughly before publishing to packagist.
I like your way of installing your own package and doing `composer update` on every working change, I want to do the same thing with github, to test the package, we simply do `composer require vendor/package-name dev-main`, I'm trying to do this but failed. Would you please make a seperate few minutes video on my problem-solution. Thanks
big fan or laracasts and amazing series by it, and i like your theme it is "atom one dark, atom material icons, and font is fira code and IDE theme font is also changed"
I'll take a look into those problems and try to come up with a simple solution for them, and get out a new video showing it!
Thanks for the reply!
@@aschmelyun 🙂🙂
Bravo!!!
I wish your text size may be a little bit smaller.
you use namespace so singleton had done what?
the last 3 letters of the api key LMAO