Customizing Laravel Pulse
Ғылым және технология
A tutorial on creating a custom Laravel Pulse card.
Links:
GitHub package: github.com/aarondfrancis/puls...
Pulse: pulse.laravel.com
Community cards site: builtforpulse.com
Blog post: aaronfrancis.com/2023/compose...
----
00:00 Card preview
00:38 Installation
01:20 Pulse recorders
02:22 Inspecting the config file
03:55 The SharedBeat
05:54 Creating our recorder
07:22 Running the pulse:check command
08:28 Composer outdated card logic
10:47 The Pulse tables
13:10 Storing data
15:08 Creating a Livewire component
20:33 What cards your business needs
----
Пікірлер: 55
Laravel approved video 👏
@aarondfrancis
6 ай бұрын
🥰🥰
I know you love your current job, but you should be part of the Laravel core team ❤
@aarondfrancis
6 ай бұрын
Nice of you to say!
@JorgeMurta
6 ай бұрын
100%
Awesome video and well explained Aaron. Can’t wait to build my own pulse cards and see what you do with Built for Pulse 👏
What an awesome tool provided for free by the Laravel team. Great stuff as always Aaron!
Thanks for this walk through. Very informative. You've been crushing it with your videos.
@aarondfrancis
6 ай бұрын
❤️
The pulse is strong with this one! 😂 Thank you Aaron. 🎉
Thanks Aaron! It's awesome! 🤓
Love you stuff !
Absolutely loved this one
Great video. I really feel like you have your finger on the pulse of the Laravel world, Aaron.
@aarondfrancis
6 ай бұрын
Dad
Thanks Aaron. I learned what the "yoink" means.
Great video
I had no idea that PHP would execute shell commands when using backticks...
❤
Awesome video. For some reason I couldn't get the custom component to work. Is it possible to change the /pulse path ?
I'm curious what a time series DB adapter like Influx would look like
i love it but hopfully in the future wee can have a vuejs or reactjs version i'm thinking about making my own version of vuejs is it gowing to get your focuse
9:41 This approach doesn't seem to work for me as I got an empty dd. I tried with dd($outdated->errorOutput()); and got the following: "The APPDATA or COMPOSER_HOME environment variable must be set for composer to run correctly". No clue how to proceed onwards.
My thought is 1. Display todays quote at top center using artisan inspire. 2. After all of the commands which is created by me not same as artisan.page but its different. 3. Which first party packages are used in my application! 4. Display schedule list. 5. Okay.. if I added any listener in laravel command then its show me first. (e.g. CommandStarting::class.) 6. Authenticated user name and role with profile photo is good but what about its connected models. And many more❤
Pretty cool, Captain. PSA: php 8.3 added json_validate but it doesn’t throw.
@aarondfrancis
6 ай бұрын
Oh nice! Didn't know that
Can someone explain how the clearing lottery works ? :D My production DB pulse table have tens of millions of rows already lol :D dries recommends to switch to redis but yea not sure how to make the clearing more aggressive. I just wish to understand how exactly this works what does 1, 2000 mean ?? 'trim' => [ 'lottery' => [1, 2_000], 'keep' => '1 days', ],
pulse = good
@aarondfrancis
6 ай бұрын
Good point
@TeenaCode
6 ай бұрын
@@aarondfrancisPulse point 🥁
Laravel is life! Awesome video! Could you or anyone tell what terminal is this?😋
@eduardotavares76
6 ай бұрын
I found it. It is iTerm. With the Minimal appearance theme and Snazzy color theme. Thank you.
@aarondfrancis
6 ай бұрын
Haha you figured it out!
What editor is that? if its php storm... can you go over what customizations have you applied to it ?
@aarondfrancis
6 ай бұрын
It is PHPStorm! I'll make a video on my setup for sure
May I ask what font do you use on your terminal?
@vivgui
6 ай бұрын
I want to know as well!
@aarondfrancis
6 ай бұрын
It's JetBrains Mono!
Can't find your Pulse Overview video, has this been taken down?
@aarondfrancis
26 күн бұрын
I haven't done it yet 🙊🙊
These pulses seem to be very inefficient, or am i wrong? Creating all those objects like the carbon time, giving them my class just to return most of the time. Even if my recorder runs every minute, 11 out of 12 times, the whole call stack was for nothing, and that for every registered recorder. I am really interested in the performance and memory and how laravel optimizes that under the hood.
@aarondfrancis
6 ай бұрын
It runs in a loop so all the recorder classes are instantiated once. The carbon classes are very cheap!
haha "hang loose we have created the component!"
@aarondfrancis
6 ай бұрын
Got to go with the chill vibes 🤙🤙
4:56 no support for windows :(
Have you ever heard of cheese on toast?
@aarondfrancis
6 ай бұрын
😂 touche
Have I ever programmed in php? No Will I ever program in php? No Then why did I watch this full video and didn't feel like a waste of time 😂😂
@aarondfrancis
6 ай бұрын
Makes me so happy
12:52 Um excuse me Sir, How are you using 31GB of memory on your laptop?
@aarondfrancis
6 ай бұрын
Lol probably PHPStorm and screenflow and a few running vite processes
@adampatterson
6 ай бұрын
@@aarondfrancis Fair, PHP Storm is often using 4GB of memory :( Oddly, my M1 work laptop is ALWAYS nearly out of memory and my Intel has never once run out. Same apps same task, and my Intel laptop has way more Chrome tabs 🤣
ever heard of prometheus+grafana?
@aarondfrancis
6 ай бұрын
Isn't it crazy how there can be multiple good solutions to a problem
@TravisNorthcutt
6 ай бұрын
I clicked on your channel but couldn’t find a video you’ve made about those tools. Are you planning on recording one showing people how to use those tools?