Best of Laravel — October 2022
- 1
- 2
Community Picks·3y
How we simplified MySQL Tuning to improve Laravel Performance
The Releem - MySQL Performance Tuning is the first step before optimizing code to improve the performance of web applications. It is faster than optimizing and testing source code. Before you start tuning, you should read the documentation, "best practices", and check the efficiency of your current MySQL configuration.
- 3
FREEK.DEV·3y
My current setup (end 2022 edition)
PhpStorm is a light-lite theme that was handcrafted by Brent Roose. The font used is Menlo, a patched version of Solarized Dark. Raycast allows me to quickly do basic tasks such as opening up apps. CodeRunner is an amazing app to perform API calls. My favourite cloud storage solution is Dropbox.
- 4
Laravel News·4y
Faster Laravel: Surprising Optimization Tips
Testmo's goal is to answer most server requests in 100ms or less. It's pretty simple: slow server-side performance will trickle down to all parts of the stack. In Testmo we don't use @include at all anymore. Instead, we've built our own lightweight alternative we call @require.
- 5
Laravel News·3y
Learn how to upload files in Laravel like a Pro
Learn how to upload files in Laravel like a Pro One of the things that I see many people struggling with is file uploads. In this tutorial, I will walk through from a basic version using blade and routes, getting more advanced, and then how we might handle it in Livewire too. We must send a file across in our request, and it must be either a PNG or JPG and not be any bigger than 5Gb.
- 6
Laravel News·4y
Laravel 9.34 Released
The Laravel team released 9.33 and 9.34, introducing Laravel Precognition, short attribute syntax for self-closing blade components, and more. The new framework feature is a new framework that will allow developers to create new and improved experiences for their users.
- 7
Laravel News·4y
Diving into Notifications
With Laravel, you can deliver to multiple channels from one notification. Laravel Notification Channels has a lot of information you can use for alternative channels. To start with, we should be sure to test what we have already built. We are faking the notification driver in Laravel so that the notification isn't routed to anyone. We then create a user we want to notify and resolve our logic from the container - abstracting this logic. The logic makes testing easier.
- 8
Community Picks·3y
Laravel’s safety mechanisms
Lazy loading is convenient because you don’t have to think upfront about which relationships to select from the database. Laravel’s Eloquent models are an implementation of the active record pattern, where each instance of a model is backed by a row in the database. If you access an attribute that was not selected, Laravel simply returns null. Your code will think an attribute is null. It might not be null at all.
- 9
Community Picks·3y
Microservices with Laravel - The Problem with Monoliths
In a classic monolith application, you create one repository and put all the classes in it. But in the microservices world, we create a separate project for each namespace. A service is a running Laravel instance, an application on its own, which usually has an API, and can communicate with the outside world. In software development, size does matter.