New Laravel Pint: Code Styling Made Easier

  Рет қаралды 35,981

Laravel Daily

Laravel Daily

2 жыл бұрын

A quick review of the new Laravel Pint and code style fixing in general.
Github: github.com/laravel/pint
- - - - -
Support the channel by checking out my products:
- My Laravel courses membership: laraveldaily.teachable.com/p/...
- Laravel QuickAdminPanel: bit.ly/quickadminpanel
- Livewire Kit Components: livewirekit.com
- - - - -
Other places to follow:
- My weekly Laravel newsletter: bit.ly/laravel-newsletter
- My personal Twitter: / povilaskorop

Пікірлер: 52
@danielrangelsa
@danielrangelsa 2 жыл бұрын
Very nice! Thanks for you content!
@jmon24ify
@jmon24ify 2 жыл бұрын
Cool package. I use editorconfig and the PhpStorm built in code style but for teams it would be more useful to have something be installed via composer since not everyone uses PhpStorm. Although I would find Pint more usefult if it automatically ran on file save. Pre-commit hooks and ci/cd pipeline is one thing but running when a file saves would be great.
@eyadbereh
@eyadbereh 2 жыл бұрын
That's very good video This topic has been concerning me for a time, i really need some tool to help me paying attention to Laravel coding standard
@SergejOleskevic
@SergejOleskevic 2 жыл бұрын
Thank you for your daily videos. 🤟Can you please shoot a video with explanation of Laravel Octane?
@LaravelDaily
@LaravelDaily 2 жыл бұрын
Haven't used it personally. But, from what I've read, you would need Laravel Octane to make speed improvements only as a last resort when you used other improvements.
@nabeelyousafpasha
@nabeelyousafpasha 2 жыл бұрын
Oh yess styling convention was much need of a time. Thanks to NUNO
@fillipepascalicchio9385
@fillipepascalicchio9385 2 жыл бұрын
Out of curiosity, could you show how an extension like that works under the hood? Might be interesting
@srikanthsanjeev
@srikanthsanjeev 2 жыл бұрын
Very helpful... Is this package formats blade files?
@GergelyCsermely
@GergelyCsermely 2 жыл бұрын
Thanks
@alexrusin
@alexrusin 2 жыл бұрын
A good idea would be to show how to automate running Pint, for example, when a file is saved or code committed.
@LaravelDaily
@LaravelDaily 2 жыл бұрын
Yes, I'm planning videos on Github Actions after the Summer.
@alexrusin
@alexrusin 2 жыл бұрын
@@LaravelDaily Github actions are great. However, I was thinking more in lines of git hooks or format a file on save, so the code looks good before it reaches github.
@LaravelDaily
@LaravelDaily 2 жыл бұрын
Also a good topic, adding to my notes.
@TiagoSouza-rk9cx
@TiagoSouza-rk9cx 2 жыл бұрын
I use run on save extension from vs code
@devKazuto
@devKazuto 2 жыл бұрын
Basically same discussion as with the pronounciation of "GIF". Creator says "Jif" like the peanut butter brand, but most people call it like "gif". The tool will be pronounced with an I as in "eye / I" sooner or later, especially with a beer pint as a logo xD
@anatoliisavenko8493
@anatoliisavenko8493 2 жыл бұрын
Great package, but how to use with no local php install? I mean by the sail command.
@AnillusionNL
@AnillusionNL 2 жыл бұрын
Maybe the creator has some Dutch or Belgian friends (Spatie?), because how 'pint' is pronounced officially is how a pint (beer) is pronounced in Dutch and Flemish.
@gtdmg489
@gtdmg489 2 жыл бұрын
It's really awesome. The only downside is that the config file is using json, which unfortunately we couldn't document significant changes for specific code styling. Also, Pint + Insights = 🔥
@Maniac-007
@Maniac-007 2 жыл бұрын
Mega Pint 🤣
@surajbherwani5488
@surajbherwani5488 2 жыл бұрын
Came here to see this lol
@hinafraz528
@hinafraz528 2 жыл бұрын
A mega pint
@jakestewart7079
@jakestewart7079 2 жыл бұрын
There's also php cs fixer
@vjorihoxha1115
@vjorihoxha1115 2 жыл бұрын
Is there any command that it automatically fixes the styling issues similar to what JavaScript related projects have with Prettier?
@julugs2000
@julugs2000 2 жыл бұрын
phpcbf if your using phpcs
@khizer3528
@khizer3528 2 жыл бұрын
Can you make a video on bootstrap Datatables in Vue JS ?
@LaravelDaily
@LaravelDaily 2 жыл бұрын
With which package or tool exactly?
@khizer3528
@khizer3528 2 жыл бұрын
@@LaravelDaily With any package which you recommend .
@LaravelDaily
@LaravelDaily 2 жыл бұрын
That's the problem, it's so fragmented that there's no "official" or even "best practice" package. Last time I tried it was this: github.com/OneWayTech/vue2-datatable Since then, I haven't built Vue Datatables, I use Livewire or Filament.
@purpleyellow5853
@purpleyellow5853 2 жыл бұрын
Please do you have a roadmap for laravel/php?
@LaravelDaily
@LaravelDaily 2 жыл бұрын
github.com/LaravelDaily/Laravel-Roadmap-Learning-Path yes
@pauloclara4764
@pauloclara4764 2 жыл бұрын
do you have a video that shows how to make larevel build to export to put online
@LaravelDaily
@LaravelDaily 2 жыл бұрын
You mean deploy to live server? I have a few older videos: kzbin.infosearch?query=deploy
@pauloclara4764
@pauloclara4764 2 жыл бұрын
@@LaravelDaily yes ... thanks again
@azaf
@azaf Жыл бұрын
how do you make it work on windoes? I just get this error after following your video CreateProcess error=193, %1 is not a valid Win32 application
@herr_pouya
@herr_pouya 2 жыл бұрын
Requires minimum php v8
@LaravelDaily
@LaravelDaily 2 жыл бұрын
Yes because lower versions are OFFICIALLY not supported anymore by PHP.
@soulvocals3474
@soulvocals3474 2 жыл бұрын
Can you all please mention some useful extension please..
@nathanashe3770
@nathanashe3770 2 жыл бұрын
Oh my God...
@DavidSmith-ef4eh
@DavidSmith-ef4eh 2 жыл бұрын
does it allow 3 spaces indentation? I like 3 so much, but I am forced to use 2 or 4.. yet 3 is perfect.
@CaioWilson
@CaioWilson Жыл бұрын
"Pint" such as nuno says it's called is REALLY close to pinto which in portuguese (brazilian, not nuno's mother tongue) is a slang like "dick".... LOL just a little trivia. I usually call it "pAint" with my brazillian colleagues.
@MePeterNicholls
@MePeterNicholls 2 жыл бұрын
Gif jif
@1234matthewjohnson
@1234matthewjohnson 2 жыл бұрын
its not called pint, but has a logo of a pint of beer
@ricko13
@ricko13 2 жыл бұрын
PHP + Lint = PLINT
@LaravelDaily
@LaravelDaily 2 жыл бұрын
Then, PTEST?
@sajjadali-wx1vd
@sajjadali-wx1vd 2 жыл бұрын
what happened with your face, looking very slim
@MrDragos360
@MrDragos360 2 жыл бұрын
Why botther so much for something that doens't affect the app ? As much as it works well and is not a cpu/ram waste nothing else matters. The only formater I like is the VSC default one that keep spaces at 2 tabs in rest I consider code formating a waste of dev time.
@LaravelDaily
@LaravelDaily 2 жыл бұрын
Do you work in a team? Or with an open-source project used by many developers? Then formatting matters A LOT.
@terryhunter7894
@terryhunter7894 2 жыл бұрын
“I consider code formatting a waste of dev time” 🤣
@MrDragos360
@MrDragos360 2 жыл бұрын
​@@LaravelDaily I work in small team with closed source and proprietary code and some time I make projects for personal clients, all projects are closed source. In case somebody needs to know somthing specific they can ask me whatever the time or day. Formatting is not the same as codding standards. VSC/VS/PhP storms handles formatting for me. Some reasons I don't want to adhere to global programming standards: 1. is my code, I write it as I like, what metter is for it to work 2. if others can't understand it easly the client will come back to me for future changes, this means more work and more income 3. my team will have to ask me or try to understand it so I make them need me 4. I don't follow standrads and norms in general, being social, life, coding. I make my own.
@agentstona
@agentstona 2 жыл бұрын
The pint belongs in the Bin ........ it does not solve a real problem or pain points its just an additional nerdy layer
@LAKD
@LAKD 2 жыл бұрын
Quality assurance, which is basically a major issue with most programmers.
@invigale
@invigale 2 жыл бұрын
that's why it's opinionated
Refactor "Senior" PHP Code with Early Returns
12:09
Laravel Daily
Рет қаралды 26 М.
Heartwarming Unity at School Event #shorts
00:19
Fabiosa Stories
Рет қаралды 24 МЛН
A teacher captured the cutest moment at the nursery #shorts
00:33
Fabiosa Stories
Рет қаралды 52 МЛН
Finger Heart - Fancy Refill (Inside Out Animation)
00:30
FASH
Рет қаралды 28 МЛН
ВОДА В СОЛО
00:20
⚡️КАН АНДРЕЙ⚡️
Рет қаралды 32 МЛН
Faster Eloquent: Avoid Accessors with Foreach
9:35
Laravel Daily
Рет қаралды 52 М.
The Most Legendary Programmers Of All Time
11:49
Aaron Jack
Рет қаралды 542 М.
Laravel Pennant: first-party feature flags
14:21
Aaron Francis
Рет қаралды 16 М.
Laravel Pivot Tables: Simple to Advanced Many-to-Many
12:24
Laravel Daily
Рет қаралды 119 М.
Getting Started with Laravel Pulse 💗
19:10
Laravel
Рет қаралды 10 М.
Exceptions in Laravel: Why/How to Use and Create Your Own
12:18
Laravel Daily
Рет қаралды 87 М.
Laravel Octane: supercharge your Laravel applications
8:34
Aaron Francis
Рет қаралды 36 М.
Don't Use Polly in .NET Directly. Use this instead!
14:58
Nick Chapsas
Рет қаралды 54 М.
Why is Laravel NOT used in Big Development Projects?
11:53
Stefan Mischook
Рет қаралды 174 М.
Самый ДОБРЫЙ мальчик!😎
1:00
Petr Savkin
Рет қаралды 6 МЛН
Забота Казахов🇰🇿
0:45
QAZAQ PEOPLE
Рет қаралды 276 М.
Será Que a FITA vai Grudar ela na PAREDE😱 #shorts
0:44
Lucan Pevidor
Рет қаралды 61 МЛН
Что делать если забыл ОЧКИ??? #моястихия #swimming #юмор #fun
0:23
МОЯ СТИХИЯ | ПЛАВАНИЕ | МОСКВА
Рет қаралды 4,8 МЛН
王子居然在家这样 #艾莎
0:38
落魄的王子
Рет қаралды 10 МЛН