Laravel cache смотреть последние обновления за сегодня на .
Стань спонсором(бусти аккаунт), доступ к собеседованиям: 🤍 Мои платные курсы: 🤍 План развития с нуля до middle+: 🤍 Группа вк: 🤍 - Содержание 00:00:00 Введение 00:02:49 Создание проекта и настройка окружения 00:05:44 Модель, Роут, Контроллер для страницы добавления поста 00:08:40 Vue для добавления поста 00:12:21 Форма для добавления 00:16:07 Добавление поста 00:20:00 Добавление автора поста 00:22:40 Постановка задачи, решаем с помощью Cache 00:26:30 Добавляем данные в Cache 00:35:09 Получаем и отрисовываем данные из Cache 00:37:42 Удаляем из Cache
This video will show you how to use cache in Laravel. The cache is the act of transparently storing data for future use in an attempt to make applications run faster. Resouces - Github: 🤍 - Patreon: 🤍 - Instagram: 🤍 - Twitter: 🤍 - Cloudways Hosting: 🤍 - Items I use: 🤍 Get up to 1 Month Free Hosting by using code "DARY15" and get $15 free hosting credit. Cloudways offers peace of mind and flexibility so you can focus on growing your business and reaching new milestones instead of dealing with server management. With Cloudways, you get an optimized stack, managed servers, backups, staging environment, integrated Git, pre-configured, Composer, 24/7 support, and the choice of five cloud providers: AWS, DigitalOcean, Linode, Google Cloud, and Vultr. Coding Gear - MacBook Pro: 🤍 - Dell XPS: 🤍 - LG 34WN650-W: 🤍 - Magic Trackpad 2: 🤍 - Magic Mouse 2: 🤍 - NAS: 🤍 - Sandisk SSD: 🤍 - Rain Design Stand: 🤍 Recording Gear - Rode NT-USB [Start]: 🤍 - Shure SM7B [Advanced]: 🤍 - Rode PSA1: 🤍 - Focusrite Scarlett 2i2: 🤍 - XLR to XLR: 🤍 Timestamps 00:00 Introduction 01:52 Sponsor of today’s video: Cloudways 02:29 Different cache drivers 04:14 Available Cache Methods 13:36 Caching database data ▬▬▬ #cloudhosting #managedhosting #cloudways #laravel #laravelcache #cache
A question from the audience about caching the paginated data, I'm sharing my opinion in this video. What would you add? - - - - - Support the channel by checking out our products: - Enroll in my Laravel courses: 🤍 - Try our Laravel QuickAdminPanel: 🤍 - Buy my ready-made Laravel scripts: 🤍 - Purchase my Livewire Kit: 🤍 - Subscribe to my weekly newsletter: 🤍
Example of when/how race conditions happen and one way to avoid them. Official Docs on Atomic Locks: 🤍 - - - - - Support the channel by checking out my products: - My Laravel courses: 🤍 - Laravel QuickAdminPanel: 🤍 - Livewire Kit Components: 🤍 - - - - - Other places to follow: - My weekly Laravel newsletter: 🤍 - My personal Twitter: 🤍
Have a solid grasp of web development and laravel, but want to learn more about laravel caching and how you can implement it? ✅ This video is for you 👆 👉Subscribe: 🤍 Caching is essential for achieving high performance and scalability. Implementing the proper caching strategy right from the development phase is critical to avoid lagging APIs and sluggish page load times. Laravel is one of the most popular PHP frameworks, so implementing the optimal Laravel caching strategy is indispensable to a better user experience and greater business impact. In this video, we’ll explore strategies for implementing and manipulating caching in Laravel. You’ll learn about how Laravel caching works, several Laravel caching queries, and how you can handle caching on Laravel apps. ℹ️ About Kinsta Kinsta is a premium managed WordPress hosting company powered by Google Cloud Platform’s premium tier network and compute-optimized C2 virtual machines, enterprise-level security, a free CDN global edge network with 200+ PoPs, and 24/7/365 support. 👉Learn more about Kinsta’s hosting solutions: 🤍 ⚙️Dig deeper in Kinsta’s tech stack and features: 🤍 👤Follow us: ► 🤍 ► 🤍 ► 🤍 ► 🤍 ► 🤍 _ 🕘Timestamps 0:00 Intro 1:13 What Is Laravel Caching? 1:40 Laravel Cache Drivers and Comparisons 5:11 Storing Cache 6:16 Retrieving Cache Data 7:07 Removing Items From Cache 7:25 Incrementing or Decrementing Cache Values 7:36 Cache Commands Explained 8:26 Laravel Caching Strategies 11:33 Caching the UI Part of a Laravel App 12:23 Build a Laravel App 12:40 Setting Up Laravel 13:01 Configuring and Seeding the Database _ 📚 Resources ⚙️Codes to Store Cache ► 🤍 ⚙️Codes to Retrieve Cache Data ► 🤍 ⚙️Code to Remove Items from Cache ► 🤍 ⚙️Incrementing or Decrementing Cache Values ► 🤍 ⚙️writeThrough ► 🤍 ⚙️writeBack (writeBehind) ► 🤍 ⚙️writeAround ► 🤍 ⚙️Cache Aside (Lazy Loading) ► 🤍 ⚙️Read Through ► 🤍 👉 Implementing FPC ► 🤍 👉 Setting Up Laravel ► 🤍 👉 Configuring and Seeding the Database ► 🤍 👉 Creating the Article Controller ► 🤍 #LaravelCache
Сегодня поговорим с вами об одной из самых крутых фич фреймворка Laravel, а именно про кеш. В основном речь будет идти про как пользоваться кешем в связке с редис, но и про остальные виды кеша так же будет разговор. Та самая админка из видео 🤍 Docker контейнер с админкой phpRedisAdmin 🤍 Сравнение Redis и Memcached 🤍 Подробности об ограничениях Memcached 🤍 Админка для Memcached 🤍 Полезные ссылки: - Телега: 🤍 - Основной канал: 🤍 - Live-канал: 🤍 - Twitch: 🤍 - Twitter: 🤍 - GitHub: 🤍 Ссылки на Steam: - Группа Steam: 🤍 - Рекомендации куратора: 🤍 Сделать пожертвование: - 🤍
What if you want to create an API endpoint that would be public for the whole world? In this video, I will live-code exactly that, including some performance and security measures. 00:00 Short intro 00:44 Step 1/4. Simple API Controller/Route 02:22 Step 2/4. Transform with API Resources 05:45 Step 3/4. Caching and Observers 10:27 Step 4/4. Throttle and Rate Limits Related links: - Eloquent API Resources: 🤍 - Cache in Laravel: 🤍 - Rate Limiting in Laravel 8: 🤍 - - - - - Support the channel by checking out our products: - Enroll in my Laravel courses: 🤍 - Try our Laravel QuickAdminPanel: 🤍 - Purchase my Livewire Kit: 🤍 - View Laravel Code Examples: 🤍 - Subscribe to my weekly newsletter: 🤍
Laravel Form Explaination This Laravel tutorial teaches you the fundamentals of Laravel 10 🌟 Premium Laravel Course 🌟 New and Updated In Depth Laravel 10 course 🤍 In this video, we will learn Laravel 10 from scratch step by step to deploy the laravel app into ubuntu AWS server using MezoHub 🤍 Learn the basics of Laravel 10 in this full course for beginners. Laravel is an MVC-based free and open-source web php framework created by Taylor Otwell. Source Code : 🤍 Social Media:- 🤍 🤍 Discord server 🤍 🔥 DIGITAL OCEAN HOSTING Affiliate Get $100 in credit for 60 days 🤍 🌟 Gadgets I use 🌟 Camera 🤍 Blue Yeti Mic 🤍 Blue Yeti Mic Foam Cover 🤍 Capture Card 🤍 🌟 Support Me ( I am a full-time YouTube) 🌟 Github 🤍 Patreon 🤍 Youtube 🤍 🌟 FOLLOW ME 🌟 Subscribe for New Releases! Twitter - 🤍 Twitter - 🤍 Facebook - 🤍 Instagram - 🤍 (ask me questions!) - QUESTIONS? - Leave a comment below and I or someone else can help you. For quick questions you may also want to ask me on Twitter, I respond almost immediately. Email me support🤍bitfumes.com Thanks for all your support
How to store query results into the cache for some time, so Laravel wouldn't even hit the database? Laravel Cache documentation: 🤍 Another Video: Optimizing Big E-Shop Homepage - from 2.5s to 0.4s 🤍 Want to support this channel? Use our QuickAdminPanel: 🤍
#howtostorerecordsincacheinlaravel #laravelcachetutorial #laravelcache Hello Dear, Welcome To Our Channel Programming Experience. In this lecture, I explained How to Store Records in Cache in Laravel, and this lecture is very useful, if you want to speed up the laravel application. My Contact- Mail ID:- sandeepdevelopercontact🤍gmail.com
In this video, you'll learn how to use Laravel Cache and configure it to improve the performance of your web applications. We'll cover the different cache drivers available in Laravel, including Redis, Memcached, and File, and walk you through step-by-step instructions on how to set up and use each one. You'll also discover advanced caching techniques, such as caching queries and responses, and get tips on how to optimize your cache for maximum performance. By the end of this video, you'll have a solid understanding of how to leverage Laravel Cache to make your web applications faster and more efficient. Don't forget to like and subscribe to our channel for more Laravel tutorials and development tips! 💻🚀 stay updated and happy. 😉 Don't miss this opportunity to improve your Laravel skills and learn more about Code Review Pals! 🚀 Join our Discord and let's talk 👉 🤍 👈 And as always, feel free to connect with me on Telegram, LinkedIn, Twitter, and GitHub. Let's keep the conversation going! 🤝 🔗 Telegram channel: 🤍 🔗 Github: 🤍 🔗 LinkedIn: 🤍 🔗 Twitter: 🤍 #Laravel #OpenSource
In this video I explained that, What is Cache, How to use Laravel Cache, How to store results in cache and how you can optimize Laravel Application and Gain Speed. #Laravel #LaravelCache #LaravelOptimization #LaravelSpeed #LaravelCacheResults
This is a quick video showing how to enable caching in Laravel! With caching, you can have more users view your website without your server working nearly as hard! This will free up bandwidth and save on hosting costs! I hope this helps! tags: laravel tutorial,pagespeed insights,laravel 7,improve website speed,laravel 5.7,laravel 7 login,website hosting,website speed,speed up website,Browser Caching in Larevel,Speed up browser caching in laravel,laravel cache,laravel cache tutorial,how to use cache in laravel,how to create cache in laravel,everything you need to know about laravel caching,basic use of cache in laravel,laravel caching video,laravel cache api response,laravel cache example #laravel #programming #webprogramming
There are quite a few ways to store and manage global settings in Laravel. I will show you the most straightforward one, and also recommend a few packages. Package spatie/laravel-settings: 🤍 Package qcod/laravel-settings: 🤍 Larastarters package: 🤍 - - - - - Support the channel by checking out my products: - My Laravel courses: 🤍 - Laravel QuickAdminPanel: 🤍 - Livewire Kit Components: 🤍 - - - - - Other places to follow: - My weekly Laravel newsletter: 🤍 - My personal Twitter: 🤍
Let’s create a Laravel cache class to store data in a Redis server or file Article: 🤍 Website: 🤍
Curso Laravel Express: Aprenda de forma prática e objetiva a desenvolver projetos em Laravel. 🤍 Lista de espera para a próxima turma da Mentoria Laravel Architect: 🤍 - Fala galera!! No #petiscando dessa semana vamos debater sobre cache no Laravel!! Dominar a usabilidade do cache no Laravel é essencial para o desempenho do seu projeto e evitar APIs atrasadas, entre outros que debateremos ao vivo. Cola no chat com a gente!! - Deixe sua sugestão de conteúdo: 🤍 ✅ FAÇA PARTE DA NOSSA COMUNIDADE NO TELEGRAM: 🤍 ✅ ENTRE NO NOSSO DISCORD: 🤍 #dev #mercadodev #programação #cache Não esqueça do esquema piramidal da brodagem: 🍻 Inscreva-se no canal e ativa o sininho de notificações 🍻 Compartilhe com três amigos Nossas rede sociais: 🤍 NÃO CLIQUE AQUI: 🤍
In this tutorial, I will show how to use Laravel model caching. Laravel Cache library allows to fully cache entire eloquent objects and reduce queries to 0. In this video, you will see how to use Laravel’s cache drivers to improve application performance. And conserve server memory without significantly slowing response times. 𝗘𝗮𝗴𝗲𝗿 𝗟𝗼𝗮𝗱𝗶𝗻𝗴: 🤍 𝗖𝗿𝗲𝗮𝘁𝗲 𝗖𝘂𝘀𝘁𝗼𝗺 𝗖𝗮𝗰𝗵𝗲 𝗗𝗿𝗶𝘃𝗲𝗿: 🤍 🚀 𝗤𝘂𝗶𝗰𝗸 𝗟𝗮𝗿𝗮𝘃𝗲𝗹 𝗣𝗲𝗿𝗳𝗼𝗿𝗺𝗮𝗻𝗰𝗲 𝗧𝗶𝗽𝘀 𝗣𝗹𝗮𝘆𝗹𝗶𝘀𝘁: 🤍
Задание для самостоятельной работы: Взять прошлый проект. 1. Добавить задание - каждый день полностью очищать кеш. При этом сделано должно быть через отдельный класс. 2. Закешировать список товаров для заказа и использовать кеш. 3. При обновлении списка товаров - обновлять кеш. ★★★★★Поддержать канал:★★★★★ карта Альфа-банк: 4790 8723 2274 1966
Filmed at Laracon EU, on April 26 - 2022, in Amsterdam. More talks on youtube.com/🤍LaraconEU
Поддержка канала: 🤍 Телеграмм 🤍 Сборка веб сервера 🤍 00:00 - 01:05 зачем нужно кэширование 01:06 - 01:25 настройка кэширования с помощи redis в laravel 01:25 - 03:10 Создаем метод который будет кешировать ответ от базы 03:11 - 03:40 что нужно знать о кэш сервисах 03:41 - 07:00 реализуем кэширование данных Пример работы с кэшем в фреймворке Laravel. Кэшировать будем ответ от базы данных. Такого рода кэширования положительно влияет на производительность веб приложения, так как ответы от сложных и трудно затратных запросов, мы сохраняем. #php #laravel #cache
How to deal with cache in Laravel effectively 💪? This is our today's video .. I will explain how to deal with cache in Laravel with awesome coding techniques that will help you with your programming workflow using laravel framework expecially using laravel 9. Don't hesitate to join me and SUBSCRIBE to my official channel here 👇 🤍 Follow Me On 👇 Website: 🤍 Linkedin: 🤍 GitHub: 🤍 #coding #programming #laravel #php #cache
In this laravel we learn how to use cache with various ways like data , file etc with simple example by anil sidhu. checkout how to use cache in laravel Hindi Language Points of Video is here Use maatwebsite package make db connection Make Model and Controller Get Table data from database Add ServiceProvider and aliases Write Code for Export Excel playlist link is here : 🤍 facebook page link is here 🤍 react js in hindi: 🤍 Checkout and subscribe our new channel for technical news 🤍
In this video, we will use laravel middleware to cache the entire response and make our website much faster. Instead of caching some part of our application like MySQL queries, we will cache the entire response. Social Media Links: Let's be friends 🤍 Follow On Facebook 🤍 Follow On Twitter 🤍 Tech stack: Laravel PHP MySQL #laravel #php #laraveltip #laratips #mysql
All of the config files of #Laravel are in the config directory. To give your project a speed boost, you should cache config files into only one file using the config:cache command. This will merge all of the config files into only one file which will be loaded quickly by the Laravel. The config:cache command should not be run during the development of the project as configuration will frequently need to be changed during your application's development. 🚀 𝗤𝘂𝗶𝗰𝗸 𝗟𝗮𝗿𝗮𝘃𝗲𝗹 𝗣𝗲𝗿𝗳𝗼𝗿𝗺𝗮𝗻𝗰𝗲 𝗧𝗶𝗽𝘀 𝗣𝗹𝗮𝘆𝗹𝗶𝘀𝘁: 🤍 #ConfigCache #LaravelPerformanceTips #LaravelTips
Are you having trouble with Laravel route caching? In this video, we show you how to clear the route cache in Laravel to ensure that your web application is running smoothly. From using the command line to clearing the cache manually, we cover everything you need to know to keep your Laravel routes working properly. Join us and take your Laravel skills to the next level! #laravel #webdevelopment #routing #webapp #programming #coding #webdev #devcommunity #learntocode #codenewbie #webdevelopmenttips #webdevelopers #backenddevelopment #webappdevelopment #laraveldevelopment #laraveldeveloper #laravelphp #webdevelopmenttraining #laraveltutorial #laravelrouteclearcache #laravelcaching
In this video you'll learn how to clear your application's cache using Observers. We'll also be using Laravel Telescope and Postman again to test things out. #tutorial #howto #laravel #php #code #development My Gear: - Canon EOS 2000d - 🤍 - Rode NT-USB Condenser Microphone - 🤍 - Aputure Mini light - 🤍
اثناء تطويرتطبيق الموقع في الLaravel 5.1 الأولوية تكون ~ لأداء الموقع ~ سرعة الأستجابة لذلك يجب اختيار افضل محرك لعملية الCaching في الCache ,ستخزن البيانات بصيغة Key value pairs داخل الMemory لذلك يطلق عليها in-memory cache في هذه الحلقة سنتعلم استخدام ~Memcached ~Redis لتخزين البيانات وسأشرح بصورة مبسطة كيفية عمل الCaching!
Стань спонсором(бусти аккаунт), доступ к собеседованиям: 🤍 Мои платные курсы: 🤍 План развития с нуля до middle+: 🤍 Группа вк: 🤍 - Содержание 00:00:00 Введение 00:02:49 Общие приготовления, установка Redis в Laravel 00:11:19 Фасад Cache и кеширование в Laravel 00:16:20 Консольная команда и первые данные в кеш 00:22:26 Настройка префиксов и наименование 00:26:10 Методы для CRUD фасада Cache в Laravel 00:27:53 Наиболее частый алгоритм работы с кешом 00:34:08 Работа с моделями index, show, store и кеширование 00:44:56 Фасад Redis и работа с методами Redis 00:52:26 Тестируем Redis 01:09:04 Таблички и подытог Задание Привести пример 1-2 проектов, где необходим Redis
In this laravel 6 we learn what the cache in laravel and how to use it with an example by anil sidhu. Points of video Why Cache is Usefull Make a Controller ,Model and Router Fetch Data with Database Use Cache class to Cache Data Cached data from a Variable Cached data from a Database We will Look on offical documentaion for more details Use maatwebsite package make db connection Make Model and Controller Get Table data from database Add ServiceProvider and aliases Write Code for Export Excel Gte the file playlist link is here : 🤍 facebook page link is here 🤍 react js in hindi: 🤍 Checkout and subscribe our new channel for technical news 🤍
By default, #LaravelCache supports "apc", "array", "database", "file", "memcached", "redis". In #Laravel, you can even write your own drivers. In this video, you will learn how to add #SQLite as cache driver for Laravel. cache table snippet: CREATE TABLE `cache` ( `key` STRING PRIMARY KEY, `value` TEXT NOT NULL, `expiration` INT DEFAULT 0 );
شرفنا في الجروب 🤍
Bu dersimizde #Laravel - Cache Kullanımı mantığını öğreniyoruz. #php #laravel #cache Merhabalar ben Mert Buldur sizlere elimden geldiğince #yazılım hakkında videolar üretmeye çalışıyorum.Kar amacı gütmeden yaptıgım bu işte sizlerde kanala abone olarak bana destek olabilirsiniz. Maddi olarak destek sağlamak isterseniz; 🤍 Daha fazla video görmek için kanala abone olmayı unutmayınız :) Oynatma Listesi Sıfırdan Php Dersleri: 🤍 Birlikte Geliştiriyoruz: 🤍 Mysql Eğitim Seti: 🤍 Vue Js Dersleri: 🤍 PHP OOP: 🤍 SOSYAL MEDYA HESAPLARIM Facebook: 🤍 Twitter: 🤍 Linkedin: 🤍 Instagram: 🤍 Web Sitem: 🤍 #code #program #yazılım #php #laravel #udemy #software #programming #website #developer #freelancer #webyazılım #reactnative #react #vue #vuejs #programlama #web yazılım
Video ini memberikan cara cepat dan mudah untuk mengoptimalkan aplikasi Laravel dengan cache. Dalam video ini, kamu akan belajar bagaimana cache dapat membantu meningkatkan performa aplikasi, serta bagaimana cara mengatur dan memanfaatkannya dengan tepat. link mysql dump 🤍
In this short video, I'm gonna show you how you can set up Redis in the new laravel app, and start using it as storage for your app. #laravel #tutorial #redis
Hello , Welcome to learn hunter.In this playlist we gonna learn laravel latest version from scratch.This tutorials are making based on laravel official documentation.I will try to teach you the all topics about laravel.if you are a beginners og laravel you can start from today.This tutorials are really halp to you build your career as a laravel backend developer.Because i try to make this playlist for all level developers basic , mid and expert.My 4 year's laravel experience knowledge are shared with you. so i hope you love this playlist and also share our videos. visit: learnhunter.xyz What's topics we gonna learn from this playlist. This is making based on laravel official documentation so we are trying to include all laravel topics , here are the list. #laravel_bangla_tutorial #laravel_latest_version #laravel Getting started #Installation in laravel #Configuration in laravel #Directory Structure in laravel #Starter Kits in laravel Architecture Concepts #Deployment in laravel #Request Lifecycle in laravel #Service Container in laravel #Service Provider in laravel #Facades in laravel The Basics #Routing in laravel #Middleware in laravel #CSRF Protection in laravel #Controllers in laravel #Requests in laravel #Views in laravel #Blade Templates in laravel #URL Generation in laravel #Session in laravel #Validation in laravel #Error Handling in laravel #Logging in laravel Digging Deeper #Artisan Console in laravel #Broadcasting in laravel #Cache in laravel #Collections in laravel #Compiling Assets in laravel #Contracts in laravel #Events in laravel #File Storage in laravel #Helpers in laravel #HTTP Client in laravel #Localization in laravel #Mail in laravel #Notifications in laravel #Package Development in laravel #Queues in laravel #Rate Limiting in laravel #Task Scheduling in laravel Security #Authentication in laravel #Authorization in laravel #Email Verification in laravel #Encryption in laravel #Hashing in laravel #Password Reset in laravel Database #Getting Started in laravel #Query Builder in laravel #Pagination in laravel #Migrations in laravel #Seeding in laravel #Redis in laravel Eloquent ORM #Getting Started in laravel #Relationships in laravel #Collections in laravel #Mutators / Casts in laravel #API Resources in laravel #Serialization in laravel Testing #Getting Started in laravel #HTTP Tests in laravel #Console Tests in laravel #Browser Tests in laravel #Database in laravel #Mocking in laravel Packages #Breeze in laravel #Cashier (Stripe) in laravel #Cashier (Paddle) in laravel #Dusk in laravel #Envoy in laravel #Fortify in laravel #Homestead in laravel #Horizon in laravel #Jetstream in laravel #Octane in laravel #Passport in laravel #Sail in laravel #Sanctum in laravel #Scout in laravel #Socialite in laravel #Telescope in laravel #Valet in laravel #API Documentation in laravel
In this exciting new video, we explore the fascinating world of caching in Laravel, focusing on its practical use case in a high-demand scenario. 🚀🔥 Imagine measuring the speed of cars on a road using multiple cameras. It's a complex problem, right? But fear not! We'll show you how caching can be the simple yet powerful solution to optimize speed measurements and reduce infrastructure costs. 🚗💨💰 Join us on this journey of discovery as we delve into the intricacies of caching and unveil its magic in solving real-world challenges. Learn how to leverage cache effectively and make your Laravel applications faster and more efficient. ⚡️💡 Don't miss out on this opportunity to level up your coding skills and gain insights into optimization techniques. Subscribe to our channel and hit the like button to stay updated with the latest Laravel tutorials and development tips! 💻🎉 And as always, feel free to connect with me on Telegram, LinkedIn, Twitter, and GitHub to keep the conversation going and explore more exciting topics together. Let's embark on this caching adventure and elevate our coding expertise! 🤝 🔗 Telegram channel: 🤍 🔗 GitHub: 🤍 🔗 LinkedIn: 🤍 🔗 Twitter: 🤍 #Laravel
В сегодняшнем мы изучим web api на Laravel. Подробно рассмотрим как это делать и реализуем простое api с разбивкой на версии, научимся использовать Postman #api#laravel#cutcode - 🚀📹👨🏫 Как насчет прокачки своих навыков с помощью наших обучающих видеокурсов по web-разработке? Переходи на мой сайт 👇 🤍 ❗️❗️❗️Присоединяйся к нашему комьюнити в телеграм - там и советом помогут и много интересного - 🤍 🤖🤖🤖Мой помощник Тэйлор готов выдать тебе подарок. Забирать тут - 🤍 - ⏰ Таймкоды: 00:00 Введение 01:33 Postman и обзор проекта, с которым будем работать 03:30 Корректируем route 06:33 Добавляем контроллер Всем поклонникам Laravel привет! В эфире Cutcode и сегодня мы затронем тему web api. Сделаем публичные api, чтобы понять все базовые особенности реализации на Laravel, тем самым мы дадим доступ остальным пользователям к данным который мы предоставляем, а api будет интерфейсом для получения этих данных. В наше время web api крайне важен - практически все приложения делаются по концепции api first. Это отдельный проект, а уже далее веб-сайт мобильные приложения и так далее, который взаимодействуют с api и получают нужные данные и работают с ними. Так устроен современный мир, такие приложения получаются более быстрыми, гибкими и их проще поддерживать. Либо api даёт пользователям в открытом либо закрытом доступе получить данные о курсе валют, погоде, состояние своих данных в том или ином сервисе. А вы уже сами решайте как их использовать. У нас будет простой api, с фантазией у меня не так все хорошо - мы будем хранить историю апдейтов версий Laravel и давать возможность получить текущую последнюю версию. То есть дадим остальным пользователям используя наш api получить данные по версионности Laravel. Что нас ждет? 1.Сделаем api с разбивкой на версии. 2.Разберемся с ресурсами и ресурс-коллекциями. 3.Добавим кэширование запросов и observer для контроля кэша. 4.Разберемся средь лимитом ограничением на запросы к api. Ну меньше слов больше практики погнали. Друзья я для тестирования api буду использовать программу postman и вам так же рекомендую. Здесь удобно менять http методы, задавать заголовки, устанавливать параметры, добавлять токен и также отслеживать ответ. Смотреть сколько времени потребовалось на получение ответа и сколько байт он занимает. Поэтому рекомендую использовать postman либо какой-либо другой аналог. Далее вернемся к нашему Laravel приложению и посмотрим что у нас есть на старте. Я уже создал таблицу version она простая, здесь по факту два необходимых поля - это title, тэг обновления и relise date,то есть дата обновления и наполнил эту таблицу тестовыми данными, исходя из последних апдейтов laravel. Ну и само собой добавил модель для этой таблицы она простая, здесь ничего особенного нет. Друзья прежде чем начать - на что необходимо обратить внимание - на то что в laravel по умолчанию есть api роуты. В директорий routes есть file api.php и здесь уже задам один route пример. Мы его пока что удалим, он нам не потребуется. - 📹 делитесь этим видео с друзьями: 🤍 🔔 подпишитесь на YouTube-канал: 🤍 📼 Курс по Laravel с нуля: 🤍 Laravel API. Все что необходимо! Json Resource, Resource Collection, Cache, Rate Limit - 🔗 наш сайт: 🤍 📷 наш instagram: 🤍 📱 Наш telegram-канал: 🤍
Today I'm showing you how you can utilize observers to aggressively use caching in your application but only clearing it once an item actually changes. This will allow you to maximize performance in your laravel application as a web developer. Taking this step is very useful to store items which has very inconsistent updates, if you ever have something that might change a lot in no time only to not really change for months to follow. TikTok: 🤍 Twitter: 🤍 0:00 Intro 0:16 Efficient Caching In Laravel With Content That Doesn't Change Often. 0:29 Migration & Seeding A Blog In Laravel 1:57 Using RememberForever In Laravel Cache 2:55 Automatically Clearing The Laravel Cache When There Is New Content
Artisan command route: cache, serializes the results of Laravel app routes files into a bootstrap/cache/routes.php file. Laravel performing operation of parsing routes once and then storing those result into cache routes.php. That's it! Routes are being parsed from the cached file, not routes file. If you make any changes to routes files, now routing of your app won't change until you re-cache. So, it is best practice to route cache on production website only not in development app. 🚀 𝗤𝘂𝗶𝗰𝗸 𝗟𝗮𝗿𝗮𝘃𝗲𝗹 𝗣𝗲𝗿𝗳𝗼𝗿𝗺𝗮𝗻𝗰𝗲 𝗧𝗶𝗽𝘀 𝗣𝗹𝗮𝘆𝗹𝗶𝘀𝘁: 🤍
In this episode, we will see how easy is caching with Vapor. In addition, we will cover how to create and manage scalable Redis clusters directly from the Vapor UI.