Next up we have @enunomaduro on @LaraconOnline

He'll be telling us about Artisan Console Component

Thread šŸ§µ
Few projects of Nuno running on Artisan console component.
php artisan output

Console kernel not so different from Http kernel. same request, framework, response cycle.
@enunomaduro will be creating Artisan from scratch šŸ¤Æ
Starting from empty composer.json file

symfony/console powers all CLI tools on PHP ecosystem.

Tasks to be done
Create `artisan` file and echo "yoyoyo" šŸ˜…

// @calebporzio
Composer users spl_autoload_register() to load classes etc.

using NunoMaduro\Collision you get beautiful output of error on Console.

Just by using Application class from Symfony/Console we get this beautiful output on console.
Let's make a command. "inspire" command.

use Symfony command for now.

InspireCommand not showing. We have to manually register it.
We want to be able to pass the command name inside the command class as property. To handle with this we'll need to create an abstract base Command class.

And pass the name in the constructor. Really cool.

And InspireCommand uses this Command instead of Symfony Command.
We can also add command description
Making $this->info() available on Command as Laravel does.
Making the `make` command and register it.

Accept the argument. $_SERVER['argv']

argument we want is on the second position, TinkerCommand
Command.stub
MaekCommand.php
Create the TinkerCommand with Tinker functionality.

We can create Tinker with just one line? šŸ¤Æ

readline() method in PHP ( surely didn't know about this )

eval() the code , don't try this at home.

while(true) to keep the session alive.

Tinker in one line šŸ¤Æ
php artisan down

App is in maintenance mode.

Just create the down file and then Laravel checks inside middleware, if that file exists, echo "App is under maintenance" and exit(1);

This is what happens on Http Layer on Laravel.

artisan up command just delete `down` file šŸ˜…
Registering all commands automatically.

glob() function in PHP šŸ¤Ø

Auto-registering artisan commands done.
End of @enunomaduro talk.

ā€¢ ā€¢ ā€¢

Missing some Tweet in this thread? You can try to force a refresh
怀

Keep Current with Zubair Mohsin

Zubair Mohsin Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @Zubairmohsin33

17 Mar
Next up we have @calebporzio talking about @LaravelLivewire and @Alpine_JS

Thread šŸ§µ
of Livewire. Woah!
Show the small things, instead of big things.

Shoutout to @TransistorFM and @noplanstomerge
Read 26 tweets
17 Mar
Next up we have @m1guelpf on @LaraconOnline

He'll be talking about Laraveil Illuminate Foundation

Thread šŸ§µ
laravel/framework requires micro packages namespaced under Illuminate.
Read 17 tweets
17 Mar
Next up we have @marcelpociot

He'll be talking about Laravel Broadcasting on @LaraconOnline

Thread šŸ§µ
Follow along at laracon.beyondco.de

It contains some interactive examples.
Two components involved in Broadcasting. Just the communication between Laravel Backend

Everytime you shoot the shoot button confetti's happen in real-time. ( laracon.beyondco.de )
Read 25 tweets
17 Mar
Next up, we have @taylorotwell on @LaraconOnline

Thread about keynotes from Taylor's talk.

šŸ§µ
Thanking everyone šŸ˜…
Stupid internet got disconnected. Alright, we are back on.
Read 38 tweets
17 Mar
Next up we have @bobbybouwmann who will be talking about Laravel Router.

Thread šŸ§µ
And now he's updating Zoom in the background šŸ˜‚
That's a good menu
Read 33 tweets
17 Mar
Next up is @christophrumpel talking about Service Container.

Thread šŸ§µ
Cool animation on slides.
Dinner break šŸ˜” can't live-tweet ... Just listening šŸ˜…
Read 21 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Too expensive? Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal Become our Patreon

Thank you for your support!

Follow Us on Twitter!