Hey hey, From my Youtube ChannelCorcel: Show WordPress Posts in Laravel Project
www.youtube.com
One of the most convenient ways to integrate WordPress into a Laravel project can be done with Corcel. Let me demonstrate. New in Laravel 9.24: Artisan db:show + db:table
www.youtube.com
Two new Artisan commands got my attention in the newest Laravel 9.24 release. Laravel AuthorizeResource for Resource Controllers
www.youtube.com
If you have a resourceful controller and want to skip checking the permissions in each method separately, this trick is for you. Laravel: Seed 50k Rows Faster - Create vs Insert vs Chunk
www.youtube.com
Let's compare the performance of three ways to add a lot of data to the database. Default Laravel Controller: Fix Type Errors and Change Stubs
www.youtube.com
I want to show a problem that I feel myself, how to fix it manually, or how to prevent it from happening in the future generated files. Laravel Queues: What if Model is Deleted Before Execution?
www.youtube.com
I want to demonstrate a problem and a solution, described in a tweet I saw recently. What if the queue is long and the record is deleted before its related job is executed? My Own Procrastination and How I Succeed/Fail
www.youtube.com
Sharing my own "fresh" thoughts and one way how to overcome procrastination. And yes, I sometimes fail at it myself :) Tweets of the weekYou can use the 'resolveRouteBinding' method on your model to modify the value that is used to resolve the binding.
twitter.com
Add "->dd()" at the end of your Eloquent / query builder to see the underlying SQL query.
twitter.com
If the model relationship returns null, you may set a default values to the related model as a fallback
twitter.com
Hey! You like my curated weekly Laravel links?
Check out my Laravel courses! If you want to send mail to each user, there are multiple ways to do that with Laravel Queues.
twitter.com
Throughout the entire framework, you can often use the 'when()' or 'unless()' helpers to conditionally modify an object.
twitter.com
If you want to use other column name other than 'id' as your primary key then define this
twitter.com
With the new "db:show" command, you can also use an option to show the row count of each table.
twitter.com
From Laravel CommunityWhat does your Laravel forge deploy script look like?
www.reddit.com
I'm asking, because I'm wondering if there is anything I could do better, e.g. the order of execution. Zero Hassle CLI Application with Laravel Zero
laravel-news.com
How can I put this? CLI apps are cool. The ability to open a terminal anywhere and just run a command to do a job that might have taken you much longer. Opening the browser going to the right page, logging in and finding what it is you need to do, and waiting for the page to load .... User-Toggled Table Columns with Laravel and Vue 3
www.youtube.com
A nice addition to any table / grid is to give Users the ability to hide columns they aren't interested in. Usually these choices should persist on page refreshes, as well. 3 New Things Added - New In Laravel 9.25.0
www.youtube.com
In this video, we will be looking at 6 new things that are added to the latest version of Laravel which is v9.25.0 Laravel nova vs Filament
www.reddit.com
for a medium size admin panel, what would you recommend?86% Upvoted Laravel 9.25 Released
laravel-news.com
The Laravel team released 9.25 with a new string method, mass updating model timestamps with the query builder, and more. Making a complete file uploader with progressbar using Livewire and Alpinejs
sinnbeck.dev
I recently had to create a file uploader that allowed the user to both click a button and select files, or simply drag files unto the page. I decided to give Livewire a shot as it seemed interesting. My first thought was to use a js package like resumeable. Save and logging of API requests and responses in Laravel Framework
medium.com
in this article, we want to learn how to save API requests and responses of Laravel in MongoDB. So if you are interested in this topic, stay with us! Why do we need to save API requests and responses? 6 New Things Added - New In Laravel 9.24.0
www.youtube.com
In this video, we will be looking at 6 new things that are added to the latest version of Laravel which is v9.24.0 Write cleaner queries with WhereRelation | Tutorial | Quick Win Wednesday #QWW
www.youtube.com
In this week's #QWW, we're optimizing our queries with the WhereRelation method. It makes our code more readable and shorter at the same time.` FYI for anyone wanting to use Laravel 9/Inertia/Vue3/Sail/Dusk
www.reddit.com
Don't have Vite running when you try to run dusk tests. It doesn't work because laravel tries to pull the assets from the vite server. Almost wasted a whole day trying to figure out wtf was going on until I noticed dusk has JS logs how to handle millions of data read/writes everyday?
www.reddit.com
I have an application that sends millions of push notifications every day. Due to Apple's requirements the application can have only a single connection. Getting Started with TDD in PHP
learn.christoph-rumpel.com
I will give you a practical introduction to test-driven development in this course. I will show you how to get started, demonstrate the benefits of TDD, and explain why it has become my preferred way of programming. 3 years of lift-and-shift into AWS Lambda
blog.deleu.dev
Let’s set the scene. We’re looking for scaling a PHP application. Googling around take us to find out that AWS Lambda is the most scalable service out there. It doesn’t support PHP natively, but we got https://bref.sh. Using Laravel `when` Method To Support Multiple Queries
ohdoylerules.com
There is a method on Laravel collections called when that allows you to create a condition on your code without using an if statement. A Deep Dive Into Laravel Queues
www.honeybadger.io
Web applications and software are generally satisfactory when they are fast. However, some tasks take time, such as sending an automated email or creating a detailed report by analyzing thousands of data points. Laravel named query arguments
dev.to
When writing a query it's common to use closures when using advanced clauses or grouping condition together in-order for the query to behave as expected. With more complex queries which have numerous closures the repeated use of the $query argument can make readability awkward. Using Pest to test Laravel Livewire validation rules
www.csrhymes.com
Last year I wrote a post about testing Laravel Livewire validation rules with PHP Unit. This post uses the same techniques as that post, but shows how to transfer it to Pest instead of PHP Unit. If you haven’t heard of Pest before then here is a description from the Pest website. Is COUNT(*) slow in MySQL?
aaronfrancis.com
TL;DR: COUNT(*) is optimized to be fast, you should use it. You have probably read in a bunch of different places that you shouldn't use SELECT(*) in MySQL when you don't need all the data. SELECT(*) selects all the columns in the table, not just the ones that you might need. Refactoring #6: Improve Code Quality in Laravel using Rector
dev.to
I recently discovered Rector and was completely blown away by its power and effectiveness. The promise is simple: you install and run the package, you get instant automated upgrades and refactorings. Damn, that's bold, I thought as I dry ran it into one of my projects. Style Your Command Outputs The Laravel Way
abunooh.com
If you have used the latest version of Laravel ^9.23, you should have noticed that Laravel had improved their command output styling greatly. packagit/packagit
github.com
Packagit is amazing laravel modules management, you could manage huge project with many separate laravel modules. You could run packagit or a short name p, such as p new Auth, a module named Auth would be created. That's it for this week, see you in the next newsletter issue! |