По умолчанию отношение BelongsToMany в Laravel работает просто замечательно — вы можете легко прикреплять, откреплять и синхронизировать записи. Но, вдруг, вам понадобилось показать из сводной таблицы самые новые или самые старые записи? Эта статья расскажет как это сделать.
https://laravel.demiart.ru/get-newest-oldest-records-from-pivot-table-in-belongstomany/
https://laravel.demiart.ru/get-newest-oldest-records-from-pivot-table-in-belongstomany/
Уроки Laravel
Как получить новые/старые записи из сводной таблицы в BelongsToMany | Уроки Laravel
Как сделать сортировку по старым или новым записям в сводной таблице отношений BelongsToMany
Релиз Laravel HTTP2 Push
Реализация функционала HTTP/2 Server Push — отправление ресурсов клиенту заранее.
https://github.com/TomKeyte/Laravel-HTTP2-Push
Реализация функционала HTTP/2 Server Push — отправление ресурсов клиенту заранее.
https://github.com/TomKeyte/Laravel-HTTP2-Push
Практические примеры использования Трейтов в Laravel
https://youtu.be/6mN0Oj6xR30
https://youtu.be/6mN0Oj6xR30
YouTube
Traits in Laravel: 5 Real Usage Examples
I want to show you practical examples of where Traits are used in Laravel: 3 examples from the Laravel framework itself, and two "bonuses".
Examples mentioned in the video:
- Soft-deletes: https://laravel.com/docs/8.x/eloquent#soft-deleting
- Resetting passwords:…
Examples mentioned in the video:
- Soft-deletes: https://laravel.com/docs/8.x/eloquent#soft-deleting
- Resetting passwords:…
Создаём sitemap для сайта с тысячами записей
https://dev.to/cwraytech/how-to-create-a-sitemap-in-laravel-for-a-website-that-contains-thousands-of-records-3cb0
https://dev.to/cwraytech/how-to-create-a-sitemap-in-laravel-for-a-website-that-contains-thousands-of-records-3cb0
DEV Community
How to Create a Sitemap in Laravel for a Website that Contains Thousands of Records.
In Laravel, if you want to build a sitemap, there are several packages built that can help you with s...
Новое в Laravel 8.12: упрощеннный regex в маршрутах
https://dev.to/gregorip02/define-restrictions-to-your-laravel-routes-easy-24do
https://dev.to/gregorip02/define-restrictions-to-your-laravel-routes-easy-24do
DEV Community
Define regex constraints to your Laravel routes easy.
In the next version 8.x of laravel a method will be added that will save you several lines of code if you are defining restrictions on your routes.
Автоматизированный SMS-опрос на Laravel+Twilio
https://www.twilio.com/blog/build-automated-sms-survey-laravel-php-twilio-programmable-sms
https://www.twilio.com/blog/build-automated-sms-survey-laravel-php-twilio-programmable-sms
Довольно часто в интернет-магазинах можно увидеть множество уровней категорий и подкатегорий, вплоть до бесконечности. Эта статья покажет вам, как сделать это элегантно при помощи Laravel Eloquent.
https://laravel.demiart.ru/recursive-hasmany-relationship-with-unlimited-subcategories/
https://laravel.demiart.ru/recursive-hasmany-relationship-with-unlimited-subcategories/
Уроки Laravel
Категории бесконечной вложенности при помощи рекурсивных отношений hasMany | Уроки Laravel
Как сделать в Ларавел категории бесконечной вложенности при помощи рекурсивных отношений hasMany.
Релиз Laravel Spectator
Пакет для тестирования OpenAPI
https://laravel-news.com/test-your-openapi-implementation-with-spectator
Пакет для тестирования OpenAPI
https://laravel-news.com/test-your-openapi-implementation-with-spectator
Laravel News
Test your OpenAPI implementation with Spectator
Spectator provides light-weight OpenAPI testing tools you can use within your existing Laravel test suite. Write tests that verify your API spec doesn't drift from your implementation.
This media is not supported in your browser
VIEW IN TELEGRAM
Создаём компонент Автозаполнения на AlpineJS и Livewire
https://chrisdicarlo.ca/blog/-alpinejs-and-livewire-autocomplete/
https://chrisdicarlo.ca/blog/-alpinejs-and-livewire-autocomplete/
Фильтрация запросов в Laravel
https://naxon.dev/blog/apply-filters-conditionally-in-laravel-with-when
https://naxon.dev/blog/apply-filters-conditionally-in-laravel-with-when
naxon.dev
Apply Filters Conditionally In Laravel With when() | Naxon.dev
Ever needed to apply filters on a query conditionally, only when the user actually applies them? Laravel query builder's method when got you covered.
Формат даты в Laravel
https://youtu.be/WsD5QvLn4is
https://youtu.be/WsD5QvLn4is
YouTube
Date Format in Laravel: How to Make it m/d/Y?
A quick lesson on date pickers and formatting date from/to the database, with Eloquent accessors/mutators.
Eloquent accessors and mutators: https://laravel.com/docs/8.x/eloquent-mutators
My course "Eloquent: Expert Level" http://bit.ly/eloquent-course
…
Eloquent accessors and mutators: https://laravel.com/docs/8.x/eloquent-mutators
My course "Eloquent: Expert Level" http://bit.ly/eloquent-course
…
This media is not supported in your browser
VIEW IN TELEGRAM
Создаём Мастер установки на Livewire
https://mettle.io/blog/using-laravel-livewire-create-setup-wizard
https://mettle.io/blog/using-laravel-livewire-create-setup-wizard
Представьте, что на вашем сайте есть поле с выбором даты. И, после того, как вы полностью сделали проект, клиент приходит с поправочкой: «Кстати, формат даты должен быть в формате m/d/y» . Придется повозится со всеми формами… Как предотвратить это в самом начале проекта? Как сделать формат дат легко настраиваемым? И в базы данных, и в полях выбора даты и во всех шаблонах?
https://laravel.demiart.ru/config-date-format/
https://laravel.demiart.ru/config-date-format/
Уроки Laravel
Настройка формата дат | Уроки Laravel
Удобная и быстрая настройка формата дат во всем проекте Ларавел
Релиз Laravel Settings
Пакет от Spatie для строгой типизации настроек приложения
https://freek.dev/1828-store-strongly-typed-settings-in-a-laravel-app
Пакет от Spatie для строгой типизации настроек приложения
https://freek.dev/1828-store-strongly-typed-settings-in-a-laravel-app
freek.dev
Store strongly typed settings in a Laravel app | freek.dev
We have released a new package, called spatie/laravel-settings, that allows you to strongly type settings in a Laravel app. In this blog post, I'd like to introduce the package to you.
Какова же реальная разница между этими двумя братскими фреймворками, и стоит ли отказываться от некоторых функций старшего брата (Laravel), в обмен на быстродействие младшего брата (Lumen).
https://laravel.demiart.ru/laravel-vs-lumen-what-to-use/
https://laravel.demiart.ru/laravel-vs-lumen-what-to-use/
Уроки Laravel
Laravel vs Lumen — Что использовать? | Уроки Laravel
Расскажем, в чём разница между Laravel и Lumen. Что лучше, быстрее, где и как их нужно использовать. Тесты производительности прилагаются.
Релиз Laravel Breeze
Пакет от Тейлора с еще одним каркасом аутентификации. Минималистичный, для тех кому не нужен навороченный Jetstream. Сделан на Blade + Tailwind.
https://laravel-news.com/laravel-breeze
Пакет от Тейлора с еще одним каркасом аутентификации. Минималистичный, для тех кому не нужен навороченный Jetstream. Сделан на Blade + Tailwind.
https://laravel-news.com/laravel-breeze
Laravel News
Laravel Breeze
Breeze provides a minimal and simple starting point for building a Laravel application with authentication. Styled with Tailwind, Breeze publishes authentication controllers and views to your application that can be easily customized based on your own application’s…
Видео-обзор Laravel Breeze
https://youtu.be/9c9pIEG4rzQ
https://youtu.be/9c9pIEG4rzQ
YouTube
Laravel Breeze Demo - Simple Laravel Starter With Authentication
If you want to use Laravel Blade & Tailwind CSS then Laravel Breeze can be a great start point for your next application. It uses blade components that are styled with Tailwind CSS. No fortify, jetstream, or any of that, just plain blade & tailwind.
🤝 You…
🤝 You…
Anti-Jetstream — Обзор Laravel Breeze от Povilas Korop
https://youtu.be/dofUcI1PkUA
https://youtu.be/dofUcI1PkUA
YouTube
NEW Laravel Breeze: Anti-Jetstream from Taylor Himself
So Taylor listened to the community members who found Jetstream too overwhelming with new stuff like Fortify, Livewire and Inertia. Here's Auth scaffolding you may like better: let's test v0.0.1 of Laravel Breeze.
Github repo: https://github.com/laravel/breeze…
Github repo: https://github.com/laravel/breeze…
В этой статье мы расскажем всё, что вам нужно знать о том, как сделать локализацию в Laravel.
https://laravel.demiart.ru/laravel-localization/
https://laravel.demiart.ru/laravel-localization/
Уроки Laravel
Локализация в Ларавел | Уроки Laravel
В этой статье мы расскажем всё, что вам нужно знать о том, как сделать локализацию в Laravel