YouTubevideo· Nov 8, 2024· 14:20· 6,400 views on YouTube

I stopped using composer run dev after one week

Watch on YouTube ↗
0:00

React at a moment you like. The best moments light up here.

transcript

37 moments
  1. have you all heard of this guy called Aaron Francis probably because most of you actually watch his channel but Aaron came out with this package called solo to make it easier to run processes for local development in a laral application without having to figure out which one's actually running where so here's solo by Aaron Francis a package to run multiple commands at once to Aid in local development after installing open the solo service provider add or remove commands I figured this would be a great pack package to integrate into my

  2. starter kit Vision if you've never heard of it it's my opinion head starter kit basically all the things that I use for most of my demo applications but solo is a perfect example of what I want to start using within uh fion why because I

  3. I initially set this up with MPX concurrently to run an mpm run Dev to run everything I need to run um basically pale which is commands to start tailing logs I needed to run cues

  4. I needed to run things like uh mpm runev uh in the sense that I want to run my V server and all of that I need to be done within one or just wanted I guess to be done within one command and that's what solo is for but

  5. it's a lot cleaner because it's a twoe you can run PHP Artisan solo and then each command whether it's logs V hdp so actually running PHP artist and surf Q even Reverb and basically anything you want within its own little You Know Tab its own little window and this is the

  6. thing that would be perfect for fion um he kind of mentions it wouldn't be possible without Joe tanon bomb's layer cast course chewy package and of course they have all promps I was going to make this video a little bit earlier but uh I actually had to submit a poll request which looks like a and merged and yep I

  7. need to update the chewy version because my starter kit fision uses laravel prompts which chewy hadn't fixed but then uh chewy did fix recently and so this is chewy by Joe tanon bomb just a basically incredibly cool way of using laravel promps to run 2E commands and he

  8. just recently updated it yesterday to to fix version constraint so we should be good to go within uh within solo so why don't we get this running in vision and then maybe configure it to my own likings and see what solo has to offer all right installation so let's go ahead and open my terminal and let's open the fion code

  9. oops code SL Vision uh I'm just going to go red and composer update just to make sure I have all of the latest uh composer package is already installed for the starter kit looks like we have a couple that need to be updated there's probably some automated way to do this I

  10. just find myself doing it every couple of days and then you know pushing those changes but now we have that updated composer lock again there's probably ways to do this let me know in the comments I would say maybe just dependent pot within GitHub is that still the way to do it um I don't know okay let's go ahead and install the solo pack AG by Aaron Francis so we're uh requiring that with composer solo D

  11. ddev require Joe tanon Bomb satisfiable by chewy okay so maybe I need to update with all dependencies

  12. DW okay quick little timeout here I did find that even though Joe tanon bomb who created chewy the dependency I needed to update for solo to work uh he had tagged 0.1.1 but it didn't necessarily have the code that we needed for all this to work together but I did find a way to do all this within composer without having to change or make any PRS to the code so we're going to run it as is and update our um update our starter kit that way

  13. heading back to the code within fision before we install solo what we're going to do is open up an VSS code pull this up and in require Dev what we're going to do is I'm going to run uh this or add in Joe tanon bomb SL chewy we're going to use the dev main which is the one with the actual updates but we're going to use it as 0.1.0 so that uh Aaron francis's solo works as we

  14. expect and now with that running we should be able to run composer update and get solo installed and solo is installed so there's a couple of different commands that we need to run solo and well PHP Artis solo runs solo

  15. but we also need to uh install the service provider so what we're going to do is use this in our in script to make sure that that's working properly so we're going to do that so if we go into our install script okay looks like oh not install we need to install the fision install command um let's go ahead and create a new one that

  16. installs looks like yeah I have okay copy off Jon um we can run maybe we'll say this uh in stall solo and we'll do that so here for we'll run a new private function called install solo and we run PHP Artisan solo

  17. install and this call automatically runs PHP Artisan so we should be good with just solo install and then we should be good to go we can run the PHP Artisan solo command

  18. and I'm curious customize solo you can open your solo service provider and make changes there so I might not even have to run solo install because we probably need this service provider because I want to up make some changes so let's actually do that we don't actually need to run solo

  19. install instead we'll remove that instead let's just go ahead and run that here okay solo installed successfully so we should have oops we should have the service provider ready to go we're going to use theme dark for logs we're going to use um let's remove this commands for logs

  20. and we'll have logs as uh PHP Artisan pale I think that's the only thing we're running within MPX or within composer run Dev let's see Dev runs PHP Artisan pale

  21. npm runev we have server Q okay so we yeah Longs with pale I do want to run Artisan serve because if I'm running that I'm probably not using herd and I could always I don't know close that out if I if I wanted to um I we we'll keep the

  22. about page just to just to satisfy uh satisfy Aaron um and then I do want to run pint but that's going to be vendor bin pint and then we'll say the anzy command and I also want to run an anzy command of pan and that's going to be PHP Artisan pan and that should be everything I

  23. need so when I run the actual Fusion install command uh we can say run composer run Dev or PHP Artisan solo to start the local server actually I might switch this around run or composer runev to start the local

  24. server that looks like it's going good let's uh go ahead and push this so get status get add get commit let's say this is adding uh erands solo and we'll push

  25. that and now let's go ahead and try running it so close this up we'll say gith HUD repo clone we'll say this is a solo

  26. test okay into solo test we'll run the install script I might have broken the flux UI but just in case let me make sure that I use my license maybe something broke there usually I'm able to pull from yeah my off. Json perhaps I I mess that up see off.

  27. Json found okay we'll fix that in a little bit we run the migrations solo test there we go onun PHP Artisan solo and we're up and running okay pull

  28. this over here okay so we have uh the PHP Artisan pale runs we have V we have PHP Artisan serve this is about follow Aaron Francis make sure you do that and then we have a Q we have pan so if I was to press s to start this we can see the analytics so if I was to sign up uh Josh ll.com testing password testing

  29. password oops and then go to playground click the button a couple times restart this now we see those pan analytics pint I can press R and we run larel pint this is

  30. pretty slick and the cool thing is like the way that Aon has set this up within the the terminal is you now we just uh automatically in our service provider let's go ahead and open this up in vs code now in our solo service provider we have the ability to just add any new command here that we want and it just just works for us if I to remove about but um a lazy

  31. command of like um make model we just like make a model that way but now we can in run make model press s to start and now the name is required it's interesting that it won't throw the model name like it won't throw

  32. the prompt so I guess we can't have larel prompts within this uh than the service so it needs to have some form of interactivity that's good to know but anything like pint or pan I can just press s to start it C to clear it and then for V or whatever I can just press P for pause F to follow and we're good to go yeah I love this

  33. because it just adds a new thing for my for my setup without having to do too much so I could uh go back to my terminal I could in code solo test I could run composer run Dev and still have my whole setup previously where I still have you know V commands logs as well as any kind of a server or if I was running um it's automatically running for Q's but now I have the ability to do the same thing but with Petri Artisan solo and still

  34. have everything up and running so I like it makes it super simple and as long as I didn't break the uh install I don't have it here but as long as I didn't break that install for uh

  35. the fision I should be good to go I don't know why I would have broken it because we should yeah we're activating flux unless something maybe like the off Json didn't exist before should because

  36. this is basically just checking if this works here maybe I accidentally deleted it or maybe Flex changeed something which is completely new go give solo for laravel Aaron Francis SL Aaron D Francis excuse me SLS sololo on GitHub star the repository and then start using it for your project it's perfect to be able to say hey I need this specific piece of code I usually run PHP Artisan blank so many different times of your in your project but now you just have this one uh twoe up and running for you and you

  37. don't to do anything else so now it's in fision now it's ready to go and hopefully I didn't break anything in the process both within my own installation but hopefully that chewy dependency hopefully that makes sense and if not I'll update it eventually but thanks so much Aaron and keep creating

just you here