Hey hey, From my LaravelDaily.com[PREMIUM COURSE] How to Create Laravel Package: Step-by-Step Example
laraveldaily.com
Creating a Laravel package may be a good option if you want to re-use some functionality in a few of your own projects, and also share that with the world, for other developers to benefit. Laravel Custom Fields: JSON, EAV Model, or Same Table?
laraveldaily.com
There are situations when we're not sure what the columns of the DB table would be, they need to be flexible. For example, e-shop product properties: size, color, fabric, there may be more in the future. What is the best DB structure? I will show you 3 options and their performance. Laravel Many-to-many Pivot Table: Add Extra Column with Relation
laraveldaily.com
Sometimes you need to add more fields to the many-to-many pivot table, and those fields may also have their own relationships. Example: you have models User, Project, and Role. How to Change Redirect After Login/Register in Laravel Breeze
laraveldaily.com
Laravel itself uses that RouteServiceProvider::HOME in the Middleware which is fired if the user is already logged in. So, first, you need to change that redirect() to your custom logic. Laravel Polymorphic Many-To-Many: Get All Related Records
laraveldaily.com
In Laravel's many-to-many polymorphic relations, there is a situation where you can't get ALL records of different models by their "parent" record. Let me explain, and show the potential solution. Scenario: you have multiple Models that each may have multiple tags. Laravel Relation "Attempt to read property on null" Error: 4 Possible Solutions
laraveldaily.com
When using a relationship, have you ever seen an error like "Attempt to read property on null"? It usually means that the related record is NULL or soft-deleted. There are multiple ways to gracefully handle such a situation, without showing the error to the user. From my Youtube ChannelHow Would ChatGPT Generate a Laravel CRUD?
www.youtube.com
Just a simple attempt of asking ChatGPT for a simple CRUD, what would it "say"? Laravel: Avoid Race Conditions with Atomic Locks in Cache
www.youtube.com
Example of when/how race conditions happen and one way to avoid them. Laravel Str::slug() Advanced: 3 Extra Parameters
www.youtube.com
You probably have used Str::slug() with one parameter of the initial string. Did you know that method has 4 parameters? Let me demonstrate. Count Relations By Column: 3 Ways To Optimize Eloquent Query
www.youtube.com
I want to demonstrate a few ways to optimize the Eloquent query of counting the records by the column in the relationship. Repeating Eloquent Scopes into Reusable Traits
www.youtube.com
If you have Eloquent local scopes repeating in multiple Models, it's a candidate for refactoring into Traits!
Hey! You like my curated weekly Laravel links?
Check out my Laravel courses! Laravel API Resource to Re-Use in Other API Resources
www.youtube.com
I want to demonstrate a "trick" that you can create a separate API Resource and reuse it in other Resources. Two Words Every Dev Needs To Think About Constantly
www.youtube.com
What if I told you there are two words that could potentially save you from bugs? Let me explain, in this video. From Laravel CommunityLet's Build YouTube in 90 minutes (Laravel, Vue JS, Inertia JS, Tailwind CSS) YouTube Clone
www.youtube.com
Hi Developers, In this tutorial, we will be building a YouTube clone using the powerful combination of Laravel, Vue.js, Tailwind CSS, and Inertia.js. We will start by setting up a fresh Laravel project and integrating Vue.js and Tailwind CSS. Next, we will use Inertia.js to handle the client-side ro I Made a Laravel Authentication With ChatGPT and Reviewed it
www.youtube.com
This video will show you how I used ChatGPT to generate a Laravel Sanctum API Authentication. After creating the code, I decided not to make any changes. I recently created a Laravel Sanctum API Authentication tutorial where I created an authentication using Laravel Sanctum. After I generated the Ch Uploading Million Records in Laravel 9 With Real time Progress
www.youtube.com
In this tutorial, I discussed how to upload a million records using queue job batching and array chunks with real-time progress bars. Visual Studio Code extension for Inertia.js
www.reddit.com
Adds hyperlinks to component names. This allows you to CTRL+click on component names in Inertia method calls (Inertia::render, Route::inertia and inertia()) to navigate to their corresponding Vue file. Please try my Laravel CRUD generator with many new features
www.reddit.com
Yet another CRUD generator for Laravel but with many new features. This package generates CRUD for your db tables instantly. This includes the Controller, Policy, 4 views+layout, routes, etc. It has Zero learning curve and hopefully it will save you time and avoid errors. How to manage a product lifecycle as a small team?
www.reddit.com
We are a small team of 6 developers and we want to improve our whole development process. We currently use Vue, Laravel, MySql and Bootstrap. Currently we use Docker for local development as we need to install separate packages not available on Composer. How to Improve Your Laravel Application's Security Using a CSP
laravel-news.com
Content Security Policies (CSP) are a great way to improve the security of your Laravel application. They allow you to whitelist the sources of scripts, styles, and other assets that your webpages can load. Leaning on the container
laravel-news.com
Laravel has a fantastic dependency injection container, yet many people shy away from it. In this tutorial, I will walk through how I lean on Laravels container to make my code work for me. Using PHP Codesniffer With Laravel
laravel-news.com
As of Laravel 9, the excellent Laravel Pint comes bundled with a new Laravel installation. I love Pint, and for most people, using it for all code-style formatting is enough. Run Multiple Sail Apps Locally With Fleet
laravel-news.com
Laravel Fleet is a package by Andrew Schmelyun to run multiple Laravel Sail websites locally with custom domain names. Laravel Email Validation Guide: Methods & Code Examples
www.abstractapi.com
Laravel provides users with a wide array of options when it comes to email validation. In this article, we’ll explore all of these methods, showing you a code example for each. Let’s look at these 6 email validation methods available in Laravel. Laravel AaaS - Actions as a Service
laravel.io
Laravel is an amazing framework. We can build products really quick with all the features and DX it provides. Upload File in Laravel Using API with Postman
blogshub.co.in
In this POST we will learn how to upload image or files via API in laravel. We will use the following steps to upload image or files via API using postman in laravel. Allowing users to send emails with their own SMTP settings in Laravel 9
blog.genijaho.dev
Various guides exist on how to do this in Laravel, but all the ones I found (this and this) worked only up to Laravel 8. The reason is that in v9 the Swift Mailer was no longer supported in favor of Symfony Mailer. Upload images in Ckeditor 5 with Laravel
dcblog.dev
CKeditor 5 out of the box does not come with upload capabilities. Uploading is supported with its plugins, some are official paid plugins that require subscriptions. There are a few free options. This plugin allows uploads that will convert an uploaded image into base64 data. Differences between map and mapWithKeys in Laravel collections
medium.com
The method takes a callback function as its argument, which is called for each item in the collection. The callback function takes an item as its argument and should return an array with one or more key-value pairs. These key-value pairs will be used to create the new collection. Laravel Breeze vs Laravel Jetstream
www.twilio.com
In this article, you will learn everything you need to know to get started with both packages. This will include installing them, a discussion of their differences and their similarities, and when to use them. Laravel Naming Conventions
webdevetc.com
Laravel is used by many thousands of developers every day to create all kinds of websites and applications. But fortunately, there are some very commonly used naming conventions that are followed by many developers when naming their Laravel project's variables, methods and functions. Laravel Export/Import: Step-by-Step Guide with Repo Example
dev.to
One of the common tasks in web development is the ability to export and import data. This can be useful for a variety of reasons, such as allowing users to download their data, or allowing administrators to bulk upload data into the system. Laravel, artisan serve, and HTTPS
dev.to
If you are working on a project with Laravel, you have more than one way to run it locally. You can use: The Artisan development server uses the PHP built-in web server for running a process that listens to new HTTP connection and executes and runs PHP code. Laravel Apple Sign in using Laravel Socialite Package
harishdpatel.medium.com
Hello Artisans…!!!! If you are reading this article, I know you are struggling to find the information you need to implement Apple Sign-In using laravel. Invite-only Registration
fly.io
Today, we're taking a look at how such invite-based registration might work in a Laravel app. Examples of floating point problems
jvns.ca
Hello! I’ve been thinking about writing a zine about how things are represented on computers in bytes, so I was thinking about floating point. But I find all of this a little abstract on its own, and I really wanted some specific examples of floating point bugs in real-world programs. Awesome Laravel: shift from legacy code to modern ✨
blog.alessandrodorazio.it
In this post, we will refactor a legacy, badly written code, in order to see an example of refactoring. As an example, we will refactor a function that generates a dynamic image from an array containing data about text to write, rectangles to draw, and images to insert. That's it for this week, see you in the next newsletter issue! |