Тёмный

Laravel Gems - Response Macros 💎 

Laravel
Подписаться 51 тыс.
Просмотров 7 тыс.
50% 1

Опубликовано:

 

30 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 21   
@aeiou...
@aeiou... 5 месяцев назад
OR you can just simply define these methods in your base controller so newly hired devs won't be frustrated trying to find these methods not knowing they're macros 😐
@shaz3e
@shaz3e 5 месяцев назад
This is very nice and let’s be consistent it will be very useful for APIs thanks Laravel and Christopher
@hiajayy
@hiajayy 5 месяцев назад
Very informative, thanks.
@r.chitector
@r.chitector 5 месяцев назад
What are the advantages of macros over a regular service class or middleware i guess?
@LaravelPHP
@LaravelPHP 5 месяцев назад
Macros are great if you want to keep using a specific Laravel service, e.g. Collections, but just want to customize it a bit.
@terjejobb3495
@terjejobb3495 5 месяцев назад
Thanks again for a very interesting video. What is the plugin or tool you use to call the apis?
@SilverPaladin
@SilverPaladin 5 месяцев назад
PHP Storm, he said it was built in.
@hiproductions123
@hiproductions123 5 месяцев назад
What was that plugin you used to have the IDE register the custom macro? Wondering whether that’s available for vscode too!
@favouroladeji3722
@favouroladeji3722 5 месяцев назад
Co-ask
@wayz9
@wayz9 5 месяцев назад
Its called Laravel Idea and its not free and I think its phpstorm only.
@spicynoodle7419
@spicynoodle7419 5 месяцев назад
You can use the laravel-ide-helper composer package for generating these LSP stubs. It works for any editor. Usually you want to do: php artisan ide-helper:generate php artisan ide-helper:models -M -N php artisan ide-helper:meta This will unlock all of the autocomplete potential of intelephense
@spicynoodle7419
@spicynoodle7419 5 месяцев назад
try the composer package, laravel-ide-helper
@favouroladeji3722
@favouroladeji3722 5 месяцев назад
@@spicynoodle7419 what about for vs code
@softmaxtech
@softmaxtech 5 месяцев назад
Lovely ❤
@DCBlogdev
@DCBlogdev 5 месяцев назад
very useful
@julienSibille
@julienSibille 5 месяцев назад
Awesome !
@mhhasib3065
@mhhasib3065 5 месяцев назад
found very useful
@LaravelPHP
@LaravelPHP 5 месяцев назад
Glad it helped!
@gregoirehebert3488
@gregoirehebert3488 5 месяцев назад
Great feature ! Not the best example though...
@spicynoodle7419
@spicynoodle7419 5 месяцев назад
Cap