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

КОМЕНТАРІ • 50

  • @sushilmore7869
    @sushilmore7869 Рік тому +1

    This is most useful video after three years also. Thank You.

  • @julianc8588
    @julianc8588 Рік тому +2

    Excelent video, well explained, good pace, straight to the point.

  • @dibbyo456
    @dibbyo456 Рік тому +1

    This is exactly what I was looking for.

  • @ashG1234
    @ashG1234 4 роки тому +5

    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.

  • @micosair
    @micosair 4 роки тому +7

    Great laravel pedagogy,you should upload more frequently. Thanks for sharing.

    • @aschmelyun
      @aschmelyun  4 роки тому +5

      You got it! More videos are coming soon.

  • @AS-eu8ej
    @AS-eu8ej Рік тому +1

    The best explanation. Thank you.

  • @blessdarah1256
    @blessdarah1256 2 роки тому +1

    You earned a subscription here. I love the way you teach. Whooo!!!!!

  • @JohnnyBigodes
    @JohnnyBigodes 3 роки тому +1

    I am using your video to do my own package... Thank you for this.

  • @Motassem.K
    @Motassem.K 2 роки тому +1

    Thanks a million, you're great

  • @fizoul356
    @fizoul356 3 роки тому +1

    fast, simple, informative, thank you

  • @jonno081
    @jonno081 Рік тому +1

    Great video, thank you... any chance of a follow up showing how to use phpunit to make tests for a package like this?

  • @phefochis6149
    @phefochis6149 4 роки тому +2

    Perfect tutorial. Thanks for share !

  • @amrihidayatulloh6883
    @amrihidayatulloh6883 2 роки тому +1

    really helpful video, thank you,

  • @Shortly8908
    @Shortly8908 2 роки тому +1

    Thank you very much dude!

  • @karencano152
    @karencano152 3 роки тому +1

    thank you for this!

  • @aspirinemaga
    @aspirinemaga 4 роки тому +1

    Exceptional video! thanks

  • @peace2941
    @peace2941 4 роки тому +1

    Very cool, how do you record the videos? Are you really typing that fast ? Great job !

    • @aschmelyun
      @aschmelyun  4 роки тому +3

      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.

    • @peace2941
      @peace2941 4 роки тому +2

      @@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 !

  • @Sunwarul
    @Sunwarul 4 роки тому +1

    Thank you for this tutorial.

  • @reubenwedson6621
    @reubenwedson6621 4 роки тому +1

    Nice stuff.. can you share your IDE set up? it is pretty cool.

  • @SanderCokart
    @SanderCokart Рік тому

    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

  • @gazorbpazorbian
    @gazorbpazorbian 4 роки тому +2

    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.

    • @aschmelyun
      @aschmelyun  4 роки тому +1

      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.

    • @wulfheart5475
      @wulfheart5475 4 роки тому

      @@aschmelyun No, it isn't.

  • @QuentinWatt
    @QuentinWatt 2 роки тому +1

    Where would I go to find a few good examples of a Laravel package?

    • @simeonanunciado1949
      @simeonanunciado1949 2 роки тому

      wow its quentin watt one of the best teacher :)

    • @devwithramzi
      @devwithramzi 18 днів тому

      I think you know where after this time 😆

  • @longwen5199
    @longwen5199 3 роки тому +1

    Great video ,it's really helpful!

  • @MrWilde
    @MrWilde 4 роки тому +1

    So good Andrew, thanks. #LoveYourWork

  • @JellyLancelot
    @JellyLancelot 4 роки тому +1

    Awesome video, love stuff like this! 👌

  • @ahmedhelal174
    @ahmedhelal174 4 роки тому +1

    Great work. Thank you

  • @jsan5709
    @jsan5709 3 роки тому +1

    great work!
    very useful
    thanks

  • @gazorbpazorbian
    @gazorbpazorbian 4 роки тому +1

    awesome and powerful tuts!

  • @adedayosule-odu991
    @adedayosule-odu991 3 роки тому

    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

  • @MuhammadAshraf-vj4sr
    @MuhammadAshraf-vj4sr 3 роки тому

    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?

  • @abelenocrodriguez
    @abelenocrodriguez 4 роки тому +1

    Nice Video!

  • @ZETN1S
    @ZETN1S 4 роки тому +1

    Great tutorial! Thanks, subscribed on you

  • @naimalum
    @naimalum 4 роки тому

    Can all the videos also be in 480p? It's 360p or 1080p.

  • @kennedymwenda3357
    @kennedymwenda3357 4 роки тому +1

    Your screen is blurred can't see what you're typing especially terminal

  • @ehguacho2008
    @ehguacho2008 3 роки тому

    the font size is too small...

  • @dfordemo981
    @dfordemo981 2 роки тому +1

    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"

    • @aschmelyun
      @aschmelyun  2 роки тому +2

      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!

    • @dfordemo981
      @dfordemo981 2 роки тому

      @@aschmelyun 🙂🙂

  • @cristobalolivahenriquez4637
    @cristobalolivahenriquez4637 4 роки тому +1

    Bravo!!!

  • @tonoysaha6294
    @tonoysaha6294 4 роки тому

    I wish your text size may be a little bit smaller.

  • @nror1311
    @nror1311 4 роки тому

    you use namespace so singleton had done what?

  • @soniablanche5672
    @soniablanche5672 2 роки тому

    the last 3 letters of the api key LMAO