Found a total of 29 related content
Laravel Type Casting
Article Introduction:You can specify the data types for certain model attributes in Laravel by using type casting. It makes sure that Laravel automatically casts the attribute values to the designated types when you retrieve data from the database.
You Can Check Here F
2024-09-28
comment 0
525
Upload File in Laravel
Article Introduction:You can upload file in Laravel using its beautiful unified API to interact with many different types of storage systems, from local disk to remote object storage like S3.
As many other Laravel components you can interact with the application filesys
2024-09-19
comment 0
564
Laravel Password Hashing With Salt
Article Introduction:Recently we went deep into the Laravel authentication system for some improvements and to add Multi-Factor authentication. I discovered some interesting details on how Laravel password hashing works.
This article can help you understand how secure
2024-09-09
comment 0
446
Reference One Variable to Another in .env File in Laravel
Article Introduction:In Laravel projects, configuration settings are usually defined in the .env file. Many times, you may want to reference one variable to another within this file. In such cases, Laravel allows you to use the ${} string pattern.
2024-09-28
comment 0
178
Tips for Code Optimization and Performance Improvement in Laravel
Article Introduction:Laravel is a robust and elegant framework, but as your application grows, optimizing its performance becomes essential. Here's a comprehensive guide with tips and examples to help you improve performance and optimize your Laravel application.
2024-09-12
comment 0
501
Laravel: A Powerful Framework for Building E-Learning Scripts
Article Introduction:Laravel, a popular PHP framework, has gained significant traction in the development community due to its elegant syntax, robust features, and developer-friendly ecosystem. When it comes to building e-learning scripts, Laravel offers a compelling set
2024-09-26
comment 0
304
How to organize your Laravel Project in 4
Article Introduction:Because of my work at developerjoy.co, I have created over 10 Laravel projects from scratch in the last year, and worked on more than 25 and I have seem one common thing in all of them.
The Laravel default directory structure only works when your pr
2024-09-09
comment 0
637
Create a new Laravel project in seconds using Docker!
Article Introduction:Docker makes getting started with a new projects much easier, saving you hours of setting up individual tools for it to work. Laravel is no exception. Here's how you can set up a new Laravel project using Docker, complete with a MySQL database.
2024-09-13
comment 0
387
Global Scope in Laravel (StepWise).
Article Introduction:Global Scopes are a vital concept in Laravel, enabling the reuse of Eloquent conditions throughout your application. By implementing Global Scopes, you can apply specific conditions to queries across all models, promoting code reuse and consistency.
2024-09-24
comment 0
541
Easy Laravel Deployment on Ubuntu: A Beginners Guide with LEMP Stack
Article Introduction:Deploying a Laravel application on Ubuntu with the LEMP stack (Linux, Nginx, MySQL, PHP) can seem daunting, but breaking it down step by step makes it manageable. This guide will walk you through the process from server setup to deploying a Laravel a
2024-09-20
comment 0
543
Laravel installs in Ubuntu step by step.
Article Introduction:To set up Laravel in a fresh Ubuntu, follow these steps:
Step 1: Update and Upgrade System Packages
Run the following commands to update your system's package list and upgrade installed packages:
sudo apt update
sudo apt upgrade
2024-09-07
comment 0
310
Limit Eager Loaded Relationships on Laravel Models
Article Introduction:Introduction
Sometimes when you're eager loading relationships on Laravel models, you might want to limit the number of related models that are returned.
For example, on a blogging platform, you might want to load every author in the system al
2024-09-09
comment 0
361
Handling Enum Values in Laravel Blade Templates
Article Introduction:Enums in Laravel offer a structured way to represent a set of constant values. However, when it comes to working with enums in Blade templates, things can sometimes become unclear, especially when comparing values for conditional rendering. In this a
2024-09-18
comment 0
556
Authorization In Laravel - A Beginners Guide
Article Introduction:Mastering Authorization in Laravel: Gates vs. Policy Classes ??
In a modern web application, controlling who can access or modify resources is crucial. For instance, in a blog application, you might want to ensure that only the owner of a post
2024-09-13
comment 0
812
Why Implement the Repository Pattern in Laravel?
Article Introduction:Introduction to the Repository Pattern in Laravel
The Repository Pattern is a design pattern used to manage data access logic and centralize it in one place. This pattern helps separate the logic that retrieves and persists data from the busine
2024-09-08
comment 0
907
The new Cache::flexible() of Laravel
Article Introduction:Waiting for large dataset to compute every time you hit a route sucks! And users don't want to wait, everyone has short retention these days, so we fixed it years ago by using Cache. Laravel has a Cache Fascad to help us caching data, and we have bee
2024-09-12
comment 0
681
Tips for testing queued jobs in Laravel
Article Introduction:When working with Laravel applications, it’s common to encounter scenarios where a command needs to perform an expensive task. To avoid blocking the main process, you might decide to offload the task to a job that can be processed by a queue.
Let’s
2024-09-19
comment 0
363