Create Laravel Composer Package from scratch to upload on packagist

Поділитися
Вставка
  • Опубліковано 25 лис 2024

КОМЕНТАРІ • 167

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

    I just created my first ever package in Laravel, all thanks to you !

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

    You are Awesome Sarthak.
    There is no such a best and perfect single tutorial of package in youtube.
    Thank you so much.

  • @namal_att
    @namal_att 6 років тому +4

    Thanks for not skipping the debugging parts. Those are too very useful and learnt something from that because we also face same issues like you. Awesome tutorial and not skipped any second. Watch all 1 hour. :)

    • @Bitfumes
      @Bitfumes  6 років тому +1

      Thanks for watching bro, please support by sharing this video and like Bitfumes on facebook to get latest updates.

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

    That video clear all my doubts about why we registered service providers in app.php and how config.php use thanks for this video i really appreciate your efforts

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

    Very very easy explanation for package development stuff.. lots of love and power to you. Make us inspire. Love from India🇮🇳

  • @beatnu187
    @beatnu187 4 роки тому +4

    Never seen a video that explains it so well as this one. Thank you alot :)

  • @JuanRangelDev
    @JuanRangelDev 6 років тому +3

    Great video! Thanks for walking me through my first Laravel package!

  • @sigmundavila7252
    @sigmundavila7252 6 років тому +3

    I really like the way you explain things. Its clear and not boring. Can you tell us also the plugins you are using in Visual Studio code?

  • @ayazahamed8254
    @ayazahamed8254 10 місяців тому

    Very Well Explained. From Creation to Publishing on Packagist.

    • @snehasur230
      @snehasur230 5 місяців тому

      Please rly i am stuck in a vital office project from my end in github can't get the tab to add services

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

    You made my laravel journey easy and interesting

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

    great great great you are explain every things thanks you

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

      Thanks and welcome

  • @SelomAMOUZOU
    @SelomAMOUZOU 6 років тому +1

    Nice tutorial. It explains a lot of what I couldn't understand before.

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

    This is the absolute best tutorial

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

    I watched a lot of tutorial but yours is the best i hope you do update whats new about packages

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

    The way you explained is awesome!!!

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

    Great work! Always joy watching and following your tutorials

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

      Thank you! Cheers!

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

    The way you explained is awesome 👌👌

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

    Great work, thanks for this tutorial. I was really looking for this.

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

      Thanks for your love and support, keep learning. Follow bitfumes on twitter.com/bitfumes or facebook.com/Bitfumes to get the latest updates.
      bitfumes.com

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

    Thank you for share this knowledge with community.

  • @shailendrasinhgohil68
    @shailendrasinhgohil68 6 років тому +3

    super cool
    Like the way you explain things
    You are doing a awesome job

    • @Bitfumes
      @Bitfumes  6 років тому

      Thanks for watching bro, keep learning. Please like Bitfumes on facebook to get latest updates.

  • @ras9579
    @ras9579 6 років тому +2

    i follow you from when you created your channel..... love u

    • @Bitfumes
      @Bitfumes  6 років тому

      Keep supporting. Thanks for watching,

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

    I'm not that experienced in Laravel package development but I think it could be good practice to have
    packages\bitfumes\contact directory
    Following your tutorial - which is very nice to follow - I then struggle in converting this method to the composer + local repository + require method for a package, which is shown by a lot of others tutorials.
    To use the local packages with composer, it seems necessary to have the complete directory chain.

  • @AmeerHamzaSadam
    @AmeerHamzaSadam 5 років тому +1

    Awesome Work, I was really waiting for this episode. Hope you remember? Keep it up...

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

    Thanks a lot, teacher. You save my job !

  • @Anna-xj4ob
    @Anna-xj4ob 3 роки тому

    love your video, it's very clear and easy to understand

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

    almost it works with laravel 8 ... tnx to you

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

    super kool, just learned using your laravel custom package tutorial, very useful

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

      Glad it was helpful!

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

    that is a nice tutorial for laravel package development

  • @sachinmaurya4744
    @sachinmaurya4744 5 років тому

    good job [explained each parts in details]....thanks for the knowledge

    • @Bitfumes
      @Bitfumes  5 років тому

      Thanks for watching, keep learning

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

    this video is more than great! it's awesome...

  • @akhilvijay8670
    @akhilvijay8670 3 місяці тому +1

    Great video. Please create a video for an updated version of laravel.

    • @Bitfumes
      @Bitfumes  3 місяці тому

      I will try
      thanks

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

    I loved it, awesome, already subscribed

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

    Excellent effort , Make videos on Github contributor as well. How other developer can contribute on my package.

  • @ali.nazari
    @ali.nazari 4 роки тому +1

    Thank you, dude. It was an amazing tutorial.

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

    Great Tutorial.

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

    finally got something useful

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

    Great tutorial dude, thanks. Subscribed 😊

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

    Thank you so much for this great tutorial

  • @Dpaz2009
    @Dpaz2009 6 років тому

    he explained it like a boss! Thanks!

    • @Bitfumes
      @Bitfumes  6 років тому

      Thanks for watching bro, please share to support bitfumes and please follow us on facebook/twitter.

  • @itstar8235
    @itstar8235 5 років тому

    nice and clear thank you

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

    awesome... learned a lot

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

    Great buddy 🤝🤝🤝

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

    Thank you I have learned about package dev

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

      Thanks for your love and support, keep learning. Subscribe to bitfumes newsletters
      bitfumes.com/newsletters

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

    Great work, keep it up

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

    Thank you for this great tutorial!

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

    Thank You very much.

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

    Helpful Tutorial

  • @shahmirjadoon1322
    @shahmirjadoon1322 6 років тому +1

    Awesome video.
    Little help, kindly make a video on how to make aliase in Laravel (like php artisan => pa)

    • @sergeys697
      @sergeys697 5 років тому

      open .bashrc. in section "aliases" write - pa php artisan.

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

    Great tutorial

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

    Awesome tutorials....
    I have one question for you,
    what is your learning method ( visual, reading etc) how do you learn new things..

  • @premodsuraweera
    @premodsuraweera Місяць тому

    I will create a laravel package.. thank you

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

    Thank you, Bitfumes!

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

    Cool its really useful to me

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

    so amazing man

  • @Nurhuda-xm9ek
    @Nurhuda-xm9ek 5 років тому

    very nice tutorial love it bro thanks for make this video

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

    great tutorial, thank you.

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

    Excellent

  • @supunbatagoda8061
    @supunbatagoda8061 2 місяці тому

    Thanks for sharing.
    I just started this tutorial, but when I added my provider to the app.php file, this error occurred.
    In ProviderRepository.php line 208:
    Class 'Sunshine\Contact\ContactServiceProvider' not found
    I did some debugging, such as checking all of the namespaces and autoload section from the package composer file, removing the boostrap/cache/package.php array object, removing the vendor folder, and trying again.
    Nothing has been done to resolve the issue mentioned above.
    Do you have any idea what went wrong? I would really appreciate it.
    Cheers!

  • @DJOverlast
    @DJOverlast 5 років тому

    I like the way you say laravel

    • @Bitfumes
      @Bitfumes  5 років тому

      thanks for watching, please check bitfumes.com/courses for more advanced courses

  • @shankarbavan6394
    @shankarbavan6394 5 років тому

    This is very useful. Thank you very much. How to handle private packages?

  • @roniestein
    @roniestein 6 років тому

    Would be nice, to follow up with how to add unit tests to your package, maybe making version 1.1 via TDD, and thanks for taking the time to make these.

    • @Bitfumes
      @Bitfumes  6 років тому

      Hey, this is a cool idea, Can you suggest any topic for package with that I will show these things.

    • @roniestein
      @roniestein 6 років тому +1

      If you want to illustrate with something small, just, use TDD to add validation to this package in the same way. Configuring the feature/unit tests and then start with an_email_required, and then an email_must_be_valid etc... mock out a quick mail test and then anything else you can think of to keep it both extremely simple, while also showing the process of setting up php_unit. Maybe talk about how you can implement tests and why they don't conflict with the domain driven TDD that the app will have. Maybe run it through a CI and show github pull requests and how to make a valid contribution to a project. I think that this is huge barrier that keeps most developers from creating and contributing to packages.
      If you are looking for a multi scree cast option, that lends itself to packages, I'd do something like a shopping cart that using cookies for guests and show the process of converting that to eloquent models for signed in users. As a contribution, you might think about adding instance functionality, like changing the regular cart to now be able to also have a separate buy later and wish list instances. What you would want to see in peoples PR's. squashing commits proper testing.
      Those are just ideas on the opposite side of the spectrum. I think this was a great video on getting people into composer packages. I just think it needs to go farther before people can really utilize it.
      Thanks again for the great content you provide. I try and leave laravel/JS/ Vue video/audio content running in the background while I work, and I have great respect for people that take the time to put their contributions out there.Especially when they are so clear and effective.

    • @Bitfumes
      @Bitfumes  6 років тому

      Hey thanks for this details view, I got your point and will create a series on that. Thanks for sharing your views. People like you are really encouraging and pushing me forward for doing this.
      Really thanks.

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

    God bless you bro

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

      Thanks for your love and support, keep learning. Subscribe to bitfumes newsletters
      bitfumes.com/newsletters

  • @pdigiani
    @pdigiani 6 років тому

    Very well explained

    • @Bitfumes
      @Bitfumes  6 років тому

      Thanks for watching, please like Bitfumes on facebook/twitter to get latest updates.

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

    wow bro awesome tutorial

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

      Glad you liked it

  • @codecrocodile
    @codecrocodile 5 років тому

    Great tutorial. It really helped a lot 🙏

    • @Bitfumes
      @Bitfumes  5 років тому

      Thanks for watching bro, please subscribe to newsletters for more advacned courses on bitfumes website. https:/bitfumes.com/courses

  • @FiroseHussain
    @FiroseHussain 6 років тому

    really happy to subscribe...

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

    that is good
    what is differnce between packaging and modeling

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

    Thanks

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

    Love you

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

    Fantastic

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

    helpful. thanks

  • @JavierGarcia-ol7ly
    @JavierGarcia-ol7ly 2 роки тому

    Cool video!

  • @BadshahSahib
    @BadshahSahib 5 років тому

    Thank you so much

  • @WizraiderRD
    @WizraiderRD 6 років тому

    Thank you so much, for this tutorial.

    • @Bitfumes
      @Bitfumes  6 років тому

      Thanks for watching, please like Bitfumes on facebook/twitter for more updates.

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

    Love u yaar

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

    Awesome tutorials.... 👏👏
    Can i ask you something,
    what is your learning method ( visual, reading etc) how do you learn new things..

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

      learn my doing or best one is teaching.

  • @bobpps
    @bobpps 6 років тому

    Большое спасибо!У Вас очень классные уроки!

    • @davidmucioca6423
      @davidmucioca6423 6 років тому

      cool

    • @Bitfumes
      @Bitfumes  6 років тому

      Thanks for watching bro, keep learning. Please like Bitfumes on facebook to get latest updates.

  • @guysolamour
    @guysolamour 6 років тому

    Good tutorial thank you

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

    Awesome

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

    Great video, one step you missed in your video is how to include another required package. I tried using composer require in my package folder, but it seems the included package namespaces are not recognized in vscode, do i need to do something with the autoload section of composer.json in the package?

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

    Thanks!!

  • @moycs777
    @moycs777 6 років тому

    tahnx a lot bro, you rock!

    • @Bitfumes
      @Bitfumes  6 років тому

      Thanks for watching bro, keep learning. Please like Bitfumes on facebook to get latest updates.

  • @ihabhamad8290
    @ihabhamad8290 6 років тому

    Thanks bro but stell we need more advanced option akt as facads midellware an other thanks bro you are awesome

    • @Bitfumes
      @Bitfumes  6 років тому +1

      Yes sure. we will do later

  • @enespekdas3235
    @enespekdas3235 5 років тому +3

    hi, how can I automatically create tables in the database when I install the package ?

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

      i don't think there would a way to mess with database directly as soon as you install package.

  • @JamesMachouk
    @JamesMachouk 6 років тому

    thank you bro , awesome tutorial (y)

    • @Bitfumes
      @Bitfumes  6 років тому

      Thanks for watching bro, please like BItfumes on facebook/twitter to get latest updates.

  • @BoolFalse
    @BoolFalse 6 років тому

    Thanks !!!
    Let this to have here. Need to watch this part later ;)
    //ss TODO: 22:15 - 39:37

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

    You created routes/web.php in the video. What if my package has both web & api routes. I tried by making routes/api.php and calling it separately in the boot function but doesn't seems to work.

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

    hello sarthak howcan we regiter service providers dynamically. So I have this requirement. I am working on one multi tenancy saas. I will have multple packages installed (same like wordpress plugins). I want to register service providers in runtime after tenant resolved. To explain to more let's say I am working on crm and I have 2 tenant one with free plan and one with paid. and In Resolvehostserviceprovider.php I resolved current plan and tenant. how can now 'hook' extra service providers.

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

    Great work thanks for this tutorial. But will you let me know why Auth::user() is not working inside the package ? I am trying to allow for only logged user but Auth::user() giving me null value.

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

      Inside package it will work only if you have route with middleware of web or api

    • @shah.burhan
      @shah.burhan 4 роки тому

      Use auth middleware.

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

    Their is an issue i am facing laravel documentation provided loadViewsFrom and same for routes, and migrations etc
    but how will copy Commands file?
    just like views, routes i created folder with name of Commands and inside that i created my commands file.
    but i am unable to load it inside src/provider file.
    incase if i did some hardcoded path i am sure this is not gonna work incase if i publish app to vendor.
    can you please help.

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

    in ContactServiceProvider.php
    namspace Bitfumes\Contact;
    but in package folder where actually the Bitfumes located?
    can you exaplain this, please?

  • @SandOfVega
    @SandOfVega 6 років тому

    Thank You.

    • @Bitfumes
      @Bitfumes  6 років тому +1

      Thanks for watching bro, please like Bitfumes on facebook/twitter for more updates.

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

    sir, how can add validation inside the custom package.
    please help me.

  • @oldschooldev1850
    @oldschooldev1850 6 років тому

    Thank you very much for this great video. Where would I put my language files and how would I access them in the view files?

    • @Bitfumes
      @Bitfumes  6 років тому

      check out this link for translations laravel.com/docs/5.6/packages#translations

    • @oldschooldev1850
      @oldschooldev1850 6 років тому +1

      Thank you for the fast reply. I've bee struggling the last two days with it and eventually got it to work. The documentations is very clear but if you write an auth package it will not translate it. So I eventually changed it to $this->loadTranslationsFrom(__DIR__.'/resources/views/lang/', 'authtr'); and now it works fine. Think it's got something to do with the word auth.

    • @Bitfumes
      @Bitfumes  6 років тому

      Thanks bro, please like Bitfumes on twitter and facebook for updates.

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

    Can you help me please. I have created a laravel package as your tutorial and publish it to packagist.
    My package is working fine in my local but whenever want to install package it show an error that my services provider class doesn’t found. though i have include namespace in composer.json and autoload service provider class

  • @유투브-c6i
    @유투브-c6i 4 роки тому

    How can i packaging js files?(for react or vue components)
    Do i also use "$this->loadViewsFrom"?

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

    Is it possible instead of using laravel blade file, I want to use Vue.js with Tailwind?

  • @joelmnisi4649
    @joelmnisi4649 5 років тому

    Can you do one where you add vuejs to the package?

  • @ZulfiqarTariqBurmi
    @ZulfiqarTariqBurmi 5 років тому

    at 15:02 line 12 loadViewsFrom(__DIR__.'/views', 'contact'); the second parameter is not project name its namespace and it can be anything i.e abcde.

  • @sigmundavila7252
    @sigmundavila7252 6 років тому

    Do you have a video where you add other plugins to your package. Sample I create a crmcore package and it needs a user interface so I want to add AdminLTE admin template because its a good template. How can I add and publish all the assets? Many thanks. Cheers.