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. :)
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
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
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.
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!
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.
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.
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.
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?
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.
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.
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.
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.
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.
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
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.
I just created my first ever package in Laravel, all thanks to you !
You are Awesome Sarthak.
There is no such a best and perfect single tutorial of package in youtube.
Thank you so much.
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. :)
Thanks for watching bro, please support by sharing this video and like Bitfumes on facebook to get latest updates.
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
Very very easy explanation for package development stuff.. lots of love and power to you. Make us inspire. Love from India🇮🇳
Never seen a video that explains it so well as this one. Thank you alot :)
Great video! Thanks for walking me through my first Laravel package!
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?
Very Well Explained. From Creation to Publishing on Packagist.
Please rly i am stuck in a vital office project from my end in github can't get the tab to add services
You made my laravel journey easy and interesting
great great great you are explain every things thanks you
Thanks and welcome
Nice tutorial. It explains a lot of what I couldn't understand before.
This is the absolute best tutorial
I watched a lot of tutorial but yours is the best i hope you do update whats new about packages
The way you explained is awesome!!!
Great work! Always joy watching and following your tutorials
Thank you! Cheers!
The way you explained is awesome 👌👌
Great work, thanks for this tutorial. I was really looking for this.
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
Thank you for share this knowledge with community.
super cool
Like the way you explain things
You are doing a awesome job
Thanks for watching bro, keep learning. Please like Bitfumes on facebook to get latest updates.
i follow you from when you created your channel..... love u
Keep supporting. Thanks for watching,
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.
Awesome Work, I was really waiting for this episode. Hope you remember? Keep it up...
Thanks a lot, teacher. You save my job !
love your video, it's very clear and easy to understand
almost it works with laravel 8 ... tnx to you
super kool, just learned using your laravel custom package tutorial, very useful
Glad it was helpful!
that is a nice tutorial for laravel package development
good job [explained each parts in details]....thanks for the knowledge
Thanks for watching, keep learning
this video is more than great! it's awesome...
Great video. Please create a video for an updated version of laravel.
I will try
thanks
I loved it, awesome, already subscribed
Excellent effort , Make videos on Github contributor as well. How other developer can contribute on my package.
Thank you, dude. It was an amazing tutorial.
Great Tutorial.
finally got something useful
Great tutorial dude, thanks. Subscribed 😊
Thank you so much for this great tutorial
he explained it like a boss! Thanks!
Thanks for watching bro, please share to support bitfumes and please follow us on facebook/twitter.
nice and clear thank you
awesome... learned a lot
Great buddy 🤝🤝🤝
Thank you I have learned about package dev
Thanks for your love and support, keep learning. Subscribe to bitfumes newsletters
bitfumes.com/newsletters
Great work, keep it up
Thank you for this great tutorial!
Thank You very much.
Helpful Tutorial
Awesome video.
Little help, kindly make a video on how to make aliase in Laravel (like php artisan => pa)
open .bashrc. in section "aliases" write - pa php artisan.
Great tutorial
Awesome tutorials....
I have one question for you,
what is your learning method ( visual, reading etc) how do you learn new things..
I will create a laravel package.. thank you
Thank you, Bitfumes!
Cool its really useful to me
so amazing man
very nice tutorial love it bro thanks for make this video
great tutorial, thank you.
Excellent
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!
I like the way you say laravel
thanks for watching, please check bitfumes.com/courses for more advanced courses
This is very useful. Thank you very much. How to handle private packages?
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.
Hey, this is a cool idea, Can you suggest any topic for package with that I will show these things.
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.
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.
God bless you bro
Thanks for your love and support, keep learning. Subscribe to bitfumes newsletters
bitfumes.com/newsletters
Very well explained
Thanks for watching, please like Bitfumes on facebook/twitter to get latest updates.
wow bro awesome tutorial
Glad you liked it
Great tutorial. It really helped a lot 🙏
Thanks for watching bro, please subscribe to newsletters for more advacned courses on bitfumes website. https:/bitfumes.com/courses
really happy to subscribe...
that is good
what is differnce between packaging and modeling
Thanks
Love you
Fantastic
helpful. thanks
Cool video!
Thank you so much
Thank you so much, for this tutorial.
Thanks for watching, please like Bitfumes on facebook/twitter for more updates.
Love u yaar
Awesome tutorials.... 👏👏
Can i ask you something,
what is your learning method ( visual, reading etc) how do you learn new things..
learn my doing or best one is teaching.
Большое спасибо!У Вас очень классные уроки!
cool
Thanks for watching bro, keep learning. Please like Bitfumes on facebook to get latest updates.
Good tutorial thank you
Awesome
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?
Thanks!!
tahnx a lot bro, you rock!
Thanks for watching bro, keep learning. Please like Bitfumes on facebook to get latest updates.
Thanks bro but stell we need more advanced option akt as facads midellware an other thanks bro you are awesome
Yes sure. we will do later
hi, how can I automatically create tables in the database when I install the package ?
i don't think there would a way to mess with database directly as soon as you install package.
thank you bro , awesome tutorial (y)
Thanks for watching bro, please like BItfumes on facebook/twitter to get latest updates.
Thanks !!!
Let this to have here. Need to watch this part later ;)
//ss TODO: 22:15 - 39:37
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.
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.
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.
Inside package it will work only if you have route with middleware of web or api
Use auth middleware.
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.
in ContactServiceProvider.php
namspace Bitfumes\Contact;
but in package folder where actually the Bitfumes located?
can you exaplain this, please?
Thank You.
Thanks for watching bro, please like Bitfumes on facebook/twitter for more updates.
sir, how can add validation inside the custom package.
please help me.
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?
check out this link for translations laravel.com/docs/5.6/packages#translations
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.
Thanks bro, please like Bitfumes on twitter and facebook for updates.
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
How can i packaging js files?(for react or vue components)
Do i also use "$this->loadViewsFrom"?
Is it possible instead of using laravel blade file, I want to use Vue.js with Tailwind?
Can you do one where you add vuejs to the package?
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.
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.