Tagged articles

PHP

3051 articles · Page 28 of 31
Laravel Tech Community
Laravel Tech Community
May 28, 2020 · Backend Development

Using Swoole Atomic for Lock‑Free Counters in PHP

Because PHP lacks native multithreading, Swoole adopts a multi‑process model and provides the Atomic class for lock‑free integer operations, which can be shared across worker processes; this guide explains its purpose, configuration, usage patterns, code examples, and important pitfalls.

BackendLock-FreePHP
0 likes · 3 min read
Using Swoole Atomic for Lock‑Free Counters in PHP
Laravel Tech Community
Laravel Tech Community
May 27, 2020 · Backend Development

Using Swoole Table for Shared Memory and High‑Performance Data Sharing in PHP

This article explains how Swoole's multi‑process model isolates memory in PHP, recommends external storage such as Redis or shared memory via Swoole/Table, details capacity calculations, handling of oversized strings, and provides a complete PHP example demonstrating table creation, data storage, and server communication.

Backend DevelopmentPHPSwoole
0 likes · 6 min read
Using Swoole Table for Shared Memory and High‑Performance Data Sharing in PHP
Laravel Tech Community
Laravel Tech Community
May 26, 2020 · Backend Development

Master PHP’s stristr() for Case‑Insensitive String Searches

Learn how PHP’s stristr() function performs a case‑insensitive search within a string, understand its syntax, parameters, return values, and see three practical code examples that illustrate basic usage, checking for absence, and using character codes, along with key differences from strstr().

BackendPHPString Functions
0 likes · 3 min read
Master PHP’s stristr() for Case‑Insensitive String Searches
Laravel Tech Community
Laravel Tech Community
May 24, 2020 · Backend Development

Mastering PHP substr(): How to Extract Substrings Effectively

This article explains the PHP substr() function, detailing its signature, parameter behavior for positive and negative start and length values, return values, and provides multiple code examples demonstrating various edge cases and expected outputs.

BackendPHPString Manipulation
0 likes · 3 min read
Mastering PHP substr(): How to Extract Substrings Effectively
Laravel Tech Community
Laravel Tech Community
May 24, 2020 · Backend Development

Creating a TCP Server with Swoole in PHP

This article demonstrates how to build a high‑performance asynchronous TCP server using the Swoole extension in PHP, covering server creation, event callbacks for connection, data reception, and closure, as well as testing the server with telnet or netcat.

@AsyncBackendPHP
0 likes · 3 min read
Creating a TCP Server with Swoole in PHP
Laravel Tech Community
Laravel Tech Community
May 23, 2020 · Backend Development

Mastering Swoole Timer: tick, after, clear and Advanced Methods Explained

This article provides a detailed guide to Swoole's millisecond‑precision timer API, covering the underlying epoll_wait/setitimer implementation, the static methods tick(), after(), clear() and additional utilities such as clearAll(), info(), list(), stats() and set(), with full syntax, usage examples and code snippets for both synchronous and asynchronous processes.

BackendPHPPerformance
0 likes · 5 min read
Mastering Swoole Timer: tick, after, clear and Advanced Methods Explained
Laravel Tech Community
Laravel Tech Community
May 21, 2020 · Databases

When to Use Optimistic vs. Pessimistic Locks in MySQL (and Redis)

This article explains the concepts, advantages, and drawbacks of MySQL pessimistic and optimistic locks, shows how to implement each with SQL and PHP code, compares their suitability for different traffic patterns, and demonstrates a Redis‑based optimistic lock for high‑concurrency flash‑sale scenarios.

MySQLOptimistic LockPHP
0 likes · 10 min read
When to Use Optimistic vs. Pessimistic Locks in MySQL (and Redis)
Laravel Tech Community
Laravel Tech Community
May 21, 2020 · Backend Development

Implementing a WebSocket Server and Client with Swoole in PHP

This tutorial demonstrates how to build a WebSocket server using PHP's Swoole extension and a corresponding HTML/JavaScript client, covering protocol basics, server-side event handling for connections, messages, and closures, and showing the complete code and execution results for real‑time bidirectional communication.

Backend DevelopmentPHPSwoole
0 likes · 4 min read
Implementing a WebSocket Server and Client with Swoole in PHP
Laravel Tech Community
Laravel Tech Community
May 19, 2020 · Backend Development

Laravel String Helper Cheat Sheet

This article provides a concise reference of Laravel's String helper functions, describing each method's purpose and showing example code snippets for common string operations such as conversion, case manipulation, searching, and generating random strings.

BackendHelperLaravel
0 likes · 2 min read
Laravel String Helper Cheat Sheet
Laravel Tech Community
Laravel Tech Community
May 18, 2020 · Backend Development

Master Laravel Collections: Powerful Methods to Filter, Transform, and Analyze Data

This tutorial explains how Laravel Eloquent returns collections, how to create collections with the collect helper, and demonstrates essential collection methods such as filter, search, chunk, zip, map, each, tap, pipe, contains, whereNotIn, max, pluck, and avg, complete with code examples and expected outputs.

BackendCollectionsData manipulation
0 likes · 11 min read
Master Laravel Collections: Powerful Methods to Filter, Transform, and Analyze Data
Laravel Tech Community
Laravel Tech Community
May 18, 2020 · Backend Development

Laravel Collection Helper Cheat Sheet

This article provides a comprehensive cheat sheet of Laravel's Collection helper methods, illustrating how to create, manipulate, and query collections with numerous code examples covering operations such as chunking, merging, filtering, sorting, and converting collections to arrays or JSON.

BackendCollectionsHelper
0 likes · 7 min read
Laravel Collection Helper Cheat Sheet
Laravel Tech Community
Laravel Tech Community
May 16, 2020 · Fundamentals

Master PHP Sorting Algorithms: Insertion, Selection, Bubble, Quick, Shell & More

This comprehensive guide walks through classic PHP sorting techniques—including insertion, selection, bubble, quick, and shell sorts—along with essential string utilities such as length calculation, reversal, comparison, substring search, replacement, insertion, deletion, copying, concatenation, simple encoding/decoding, and basic encryption/decryption, providing clear explanations and ready‑to‑run code examples for each algorithm.

AlgorithmsData StructuresPHP
0 likes · 15 min read
Master PHP Sorting Algorithms: Insertion, Selection, Bubble, Quick, Shell & More
Laravel Tech Community
Laravel Tech Community
May 12, 2020 · Backend Development

Laravel Blade Template Inheritance, Includes, and Control Structures Tutorial

This article explains how to use Laravel's Blade templating engine for creating reusable layouts with inheritance, including child views, passing parameters, template includes, and Blade's convenient control structures such as conditionals, authentication checks, switch statements, and various loop directives, all illustrated with complete code examples.

BackendBladeLaravel
0 likes · 9 min read
Laravel Blade Template Inheritance, Includes, and Control Structures Tutorial
Laravel Tech Community
Laravel Tech Community
May 11, 2020 · Backend Development

Laravel Queue Cheat Sheet and Usage Guide

This guide provides a concise reference for Laravel's Queue helper, showing how to push jobs, use bulk operations, manage workers with Artisan commands, handle failed jobs, and configure memory, all illustrated with clear code examples for backend developers.

ArtisanBackendJobs
0 likes · 2 min read
Laravel Queue Cheat Sheet and Usage Guide
Laravel Tech Community
Laravel Tech Community
May 10, 2020 · Backend Development

Comprehensive Laravel Routing Guide: Definitions, Parameters, Groups, Middleware, Prefixes, Subdomains, and Caching

This tutorial provides a detailed overview of Laravel routing, covering basic route definitions, HTTP verbs, parameter handling, route naming, grouping, middleware usage, URL prefixes, subdomain routing, namespace organization, accessing current route information, and cache management, all illustrated with clear code examples.

BackendLaravelPHP
0 likes · 5 min read
Comprehensive Laravel Routing Guide: Definitions, Parameters, Groups, Middleware, Prefixes, Subdomains, and Caching
Laravel Tech Community
Laravel Tech Community
May 8, 2020 · Backend Development

Step‑by‑Step Guide: Integrate Alibaba Cloud SMS with Laravel 5.6

This tutorial shows how to register an Alibaba Cloud account, configure access keys, meet PHP requirements, install Laravel 5.6 via Composer, add the mrgoon/aliyun‑sms package, set up configuration files, write an API route and controller to send verification codes, cache them, and test the endpoint with Postman.

APIAlibaba CloudBackend
0 likes · 5 min read
Step‑by‑Step Guide: Integrate Alibaba Cloud SMS with Laravel 5.6
Laravel Tech Community
Laravel Tech Community
May 7, 2020 · Backend Development

Implementing Third-Party WeChat Login in Laravel with Socialite

This tutorial walks through installing Laravel Socialite and the WeChat provider, configuring environment and service files, adding routes and controller methods, and handling user authentication to enable seamless third‑party WeChat login in a Laravel application.

BackendLaravelOAuth
0 likes · 4 min read
Implementing Third-Party WeChat Login in Laravel with Socialite
Laravel Tech Community
Laravel Tech Community
May 7, 2020 · Backend Development

Laravel Redirect Cheat Sheet

This article provides a concise Laravel Redirect cheat sheet that explains how to use the framework's URL redirection helper with session storage, covering basic redirects, redirects with data, back navigation, named routes, controller actions, and intended redirects, accompanied by ready-to-use code examples.

BackendLaravelPHP
0 likes · 2 min read
Laravel Redirect Cheat Sheet
Laravel Tech Community
Laravel Tech Community
May 6, 2020 · Backend Development

Laravel Validation Cheat Sheet

This article provides a concise Laravel validation cheat sheet that explains the purpose of the Validation helper, shows common code examples for creating and extending validators, and lists the most frequently used validation rules with their syntax for quick reference.

BackendCheat SheetLaravel
0 likes · 2 min read
Laravel Validation Cheat Sheet
Laravel Tech Community
Laravel Tech Community
May 6, 2020 · Backend Development

Laravel Storage Quick Reference Guide

This quick reference sheet introduces Laravel's Storage facade, explaining its role as a file handling helper and providing concise examples of common operations such as writing, reading, downloading, managing visibility, and manipulating directories and files using the Storage API.

BackendLaravelPHP
0 likes · 3 min read
Laravel Storage Quick Reference Guide
Laravel Tech Community
Laravel Tech Community
May 4, 2020 · Databases

Laravel Schema Cheat Sheet: Quick Guide to Database Migrations

This Laravel Schema cheat sheet provides concise, English-translated code examples for creating, modifying, and managing database tables, columns, indexes, and foreign keys, covering table creation, column types, indexing options, and common schema operations with clear syntax.

Cheat SheetLaravelPHP
0 likes · 5 min read
Laravel Schema Cheat Sheet: Quick Guide to Database Migrations
Laravel Tech Community
Laravel Tech Community
May 3, 2020 · Backend Development

Laravel Mail Cheat Sheet: Quick Reference for Sending Emails

This cheat sheet provides a concise reference for Laravel's Mail helper, covering basic sending methods, queueing options, delayed delivery, message configuration (recipients, subject, priority, attachments, embeds), and useful code snippets for rapid implementation.

BackendCheat SheetLaravel
0 likes · 3 min read
Laravel Mail Cheat Sheet: Quick Reference for Sending Emails
Laravel Tech Community
Laravel Tech Community
May 3, 2020 · Backend Development

PHP Implementation of WeChat Red Packet Splitting Algorithm

This article demonstrates a PHP class that implements the WeChat red packet splitting algorithm, explaining the constraints, providing a complete source code example, and showing how to instantiate the class to distribute a total amount into a specified number of packets with a minimum value.

BackendMoney SplittingPHP
0 likes · 6 min read
PHP Implementation of WeChat Red Packet Splitting Algorithm
Laravel Tech Community
Laravel Tech Community
Apr 29, 2020 · Backend Development

Laravel Response Helper Quick Reference

This article explains Laravel's Response helper—a key tool for returning data to the front end—provides a concise quick‑reference table, and includes practical code snippets for creating responses, JSON output, file downloads, header manipulation, and cookie attachment.

BackendHTTPLaravel
0 likes · 2 min read
Laravel Response Helper Quick Reference
Laravel Tech Community
Laravel Tech Community
Apr 29, 2020 · Backend Development

Common Laravel 7 Installation Errors and Their Solutions

This guide explains typical Laravel 7 installation problems—including missing PHP extensions, Composer version conflicts, 403 errors, cache issues, permission errors, and migration failures—provides step‑by‑step commands to install via Composer, generate the application key, configure the web server, and troubleshoot each error with clear solutions.

ComposerInstallationLaravel
0 likes · 7 min read
Common Laravel 7 Installation Errors and Their Solutions
Laravel Tech Community
Laravel Tech Community
Apr 27, 2020 · Backend Development

Master Laravel Events: Quick Reference Cheat Sheet & Code Guide

This article provides a concise Laravel Event cheat sheet, explaining the EventServiceProvider $listen array, generation of listener classes, and the full set of Event facade methods for dispatching, listening, subscribing, and managing event lifecycles with ready-to-use code examples.

BackendEventLaravel
0 likes · 3 min read
Master Laravel Events: Quick Reference Cheat Sheet & Code Guide
Laravel Tech Community
Laravel Tech Community
Apr 27, 2020 · Backend Development

Using Laravel FastExcel for Efficient Import and Export of Large Datasets

Laravel FastExcel provides a memory‑friendly alternative to Laravel Excel for importing and exporting data, demonstrating installation via Composer, basic export of collections or models, handling large datasets with generators, and various import configurations, while emphasizing performance considerations such as max_execution_time.

Data ExportFastExcelLaravel
0 likes · 5 min read
Using Laravel FastExcel for Efficient Import and Export of Large Datasets
Laravel Tech Community
Laravel Tech Community
Apr 26, 2020 · Backend Development

Top PHP Interview Questions and Answers for Developers

This article compiles a comprehensive set of PHP interview questions covering fundamentals, session and cookie handling, database transactions, MySQL optimization, version control tools, string manipulation, HTTP status codes, MVC concepts, and practical coding tasks with detailed answers and code examples.

Backend DevelopmentMySQLPHP
0 likes · 28 min read
Top PHP Interview Questions and Answers for Developers
Laravel Tech Community
Laravel Tech Community
Apr 26, 2020 · Backend Development

Laravel Route Cheat Sheet and Usage Guide

This article provides a concise Laravel Route cheat sheet, explaining basic route definitions, resource routes, error handling, parameters, HTTP methods, middleware, named routes, prefixes, namespaces, subdomain routing, and includes practical code examples for each feature.

BackendLaravelPHP
0 likes · 5 min read
Laravel Route Cheat Sheet and Usage Guide
Laravel Tech Community
Laravel Tech Community
Apr 25, 2020 · Backend Development

Laravel Auth Cheat Sheet

This cheat sheet provides a concise reference of Laravel's Auth facade methods for user authentication and session handling, as well as Gate-based authorization techniques, including ability definitions, permission checks, policy generation, and controller or middleware integration.

AuthorizationBackendLaravel
0 likes · 5 min read
Laravel Auth Cheat Sheet
Laravel Tech Community
Laravel Tech Community
Apr 25, 2020 · Backend Development

Integrating Emoji Support in Laravel Using the Laravel‑Emoji Package

This article explains how to add Unicode emoji rendering to a Laravel application by installing the Laravel‑Emoji extension, configuring Composer, registering the service provider and alias, defining a route, and using the Emoji class in a controller to convert aliases, names, and Unicode codes into emoji graphics.

BackendComposerLaravel
0 likes · 4 min read
Integrating Emoji Support in Laravel Using the Laravel‑Emoji Package
Laravel Tech Community
Laravel Tech Community
Apr 24, 2020 · Backend Development

PHP Basic Interview Questions

This article presents a collection of ten PHP basic interview questions covering CSS properties, HTML link targets, CSS centering techniques, color and opacity concepts, JavaScript object references, parsing functions, type coercion, prototype inheritance, DOM selection methods, and AJAX versus form submission nuances.

BackendPHPQuiz
0 likes · 5 min read
PHP Basic Interview Questions
Laravel Tech Community
Laravel Tech Community
Apr 23, 2020 · Backend Development

Laravel Cache Cheat Sheet: Quick Reference for Common Operations

This article provides a concise cheat sheet for Laravel's Cache system, detailing facade methods, helper functions, tagging, sections, store selection, and related events with ready-to-use code snippets, while noting version‑specific nuances such as the cache duration unit change in Laravel 5.8.

BackendCacheFacadeLaravel
0 likes · 4 min read
Laravel Cache Cheat Sheet: Quick Reference for Common Operations
Laravel Tech Community
Laravel Tech Community
Apr 23, 2020 · Backend Development

Understanding ORM vs DB Query Builder in Laravel

This article explains the differences between Laravel's ORM and DB query builder, outlines their advantages and appropriate use cases, and provides step‑by‑step code examples for defining models, retrieving, creating, and deleting records, as well as handling transactions.

LaravelORMPHP
0 likes · 5 min read
Understanding ORM vs DB Query Builder in Laravel
Liangxu Linux
Liangxu Linux
Apr 22, 2020 · Backend Development

How to Manually Install Apache, MariaDB, PHP and Discuz Forum on Linux

This guide walks through manually installing Apache, MariaDB, PHP, and the Discuz X2 forum on a Linux system, covering prerequisite checks, mounting installation media, configuring yum repositories, installing and starting services, securing MariaDB, deploying Discuz files, setting permissions, creating the database, and completing the setup wizard.

ApacheDiscuzInstallation
0 likes · 5 min read
How to Manually Install Apache, MariaDB, PHP and Discuz Forum on Linux
Laravel Tech Community
Laravel Tech Community
Apr 22, 2020 · Backend Development

Unlock PHP 7.4: 7 Powerful Features to Simplify Your Code

This article introduces seven new PHP 7.4 features—including typed properties, arrow functions, array unpacking, null‑coalescing assignment, numeric separators, array‑based strip_tags, and the deprecated money_format replacement—providing concise code examples and practical usage tips for developers.

BackendCode ExamplesNew Features
0 likes · 3 min read
Unlock PHP 7.4: 7 Powerful Features to Simplify Your Code
Laravel Tech Community
Laravel Tech Community
Apr 22, 2020 · Backend Development

Laravel Log Quick Reference and SQL Query Logging Guide

This article provides a concise Laravel Log quick reference, detailing the seven RFC‑5424 log levels, usage examples, how to retrieve the Monolog instance, add listeners, and enable and fetch SQL query logs, followed by motivational reflections on perseverance and growth.

BackendLaravelMonolog
0 likes · 2 min read
Laravel Log Quick Reference and SQL Query Logging Guide
Laravel Tech Community
Laravel Tech Community
Apr 21, 2020 · Backend Development

Implement Image Upload with Laravel 5.6 and Alibaba Cloud OSS

This guide walks through setting up a Laravel 5.6 project, installing the Alibaba Cloud OSS storage package, configuring access credentials, creating a custom upload controller, and testing the image upload API with Postman, providing complete code snippets and step‑by‑step instructions.

Alibaba Cloud OSSBackendImage Upload
0 likes · 6 min read
Implement Image Upload with Laravel 5.6 and Alibaba Cloud OSS
Laravel Tech Community
Laravel Tech Community
Apr 21, 2020 · Backend Development

Laravel Cookie Helper Cheat Sheet

This cheat sheet provides a concise reference for Laravel's Cookie helper functions, showing how to retrieve, create, queue, and delete cookies, as well as how to send cookies with responses and configure unencrypted cookies, complete with ready-to-use code examples.

BackendCookieHelper
0 likes · 2 min read
Laravel Cookie Helper Cheat Sheet
Laravel Tech Community
Laravel Tech Community
Apr 21, 2020 · Backend Development

Master Laravel Eloquent: Essential Model Cheat Sheet & Usage Guide

This cheat sheet provides a concise yet comprehensive guide to Laravel's Eloquent Model, covering definition, artisan commands, common CRUD methods, soft‑deletes, relationship types, model events, and configuration tips, all illustrated with ready‑to‑copy code examples.

BackendEloquentLaravel
0 likes · 9 min read
Master Laravel Eloquent: Essential Model Cheat Sheet & Usage Guide
Laravel Tech Community
Laravel Tech Community
Apr 21, 2020 · Backend Development

New Features and Improvements in Laravel 7

Laravel 7 builds on the 6.x release with a host of backend enhancements such as Laravel Sanctum (Airlock), faster route matching, custom Eloquent casts, Blade component tags, improved string helpers, a native HTTP client, CORS support, route‑model binding upgrades, queue and mail driver improvements, plus new artisan commands and various bug fixes.

APIBackendEloquent
0 likes · 5 min read
New Features and Improvements in Laravel 7
Laravel Tech Community
Laravel Tech Community
Apr 20, 2020 · Backend Development

Composer Quick Reference Cheat Sheet

This cheat sheet introduces Composer, the PHP dependency manager, explains its purpose, and provides a concise list of essential Composer commands for creating projects, installing and updating packages, optimizing autoload files, self‑updating, requiring packages globally, and displaying package information.

Backend DevelopmentComposerLaravel
0 likes · 2 min read
Composer Quick Reference Cheat Sheet
Laravel Tech Community
Laravel Tech Community
Apr 20, 2020 · Backend Development

Implementing JWT Authentication API in Laravel

This guide walks through installing the tymon/jwt-auth package, configuring Laravel, creating middleware for CORS and JWT verification, defining API routes, building an authentication controller, and testing the registration and login endpoints using tools like Postman or AJAX.

APIBackendJWT
0 likes · 7 min read
Implementing JWT Authentication API in Laravel
Laravel Tech Community
Laravel Tech Community
Apr 19, 2020 · Backend Development

Key Concepts and Features of the Laravel PHP Framework

This article provides a comprehensive overview of Laravel, covering its definition, advantages over other PHP frameworks, core components such as migrations, facades, service container, Eloquent models, events, query builder, route naming, closures, testing techniques, traits, autoloading, generators, and various PHP language features with practical code examples.

Backend DevelopmentFacadesLaravel
0 likes · 14 min read
Key Concepts and Features of the Laravel PHP Framework
Laravel Tech Community
Laravel Tech Community
Apr 19, 2020 · Backend Development

Laravel Artisan Command Cheat Sheet

This cheat sheet provides a comprehensive list of Laravel Artisan commands, including help options, environment settings, cache management, database migrations, queue handling, and code generation, offering developers quick reference for efficient command-line operations in PHP backend development.

ArtisanBackendCLI
0 likes · 8 min read
Laravel Artisan Command Cheat Sheet
Laravel Tech Community
Laravel Tech Community
Apr 18, 2020 · Backend Development

Laravel Helper Functions Cheat Sheet

This cheat sheet presents Laravel's Helper utilities, covering array and object methods, path helpers, string functions, URL generators, and miscellaneous helpers, each illustrated with concise code examples to streamline backend development in PHP.

BackendHelperLaravel
0 likes · 8 min read
Laravel Helper Functions Cheat Sheet
Laravel Tech Community
Laravel Tech Community
Apr 17, 2020 · Backend Development

Master Laravel Events: From Registration to Queued Listeners

This guide explains how Laravel's event system enables decoupled architecture by showing how to register events and listeners, generate code with Artisan, use wildcard listeners, define event and listener classes, control propagation, queue listeners, handle failures, dispatch events, and implement event subscribers.

EventsLaravelListeners
0 likes · 10 min read
Master Laravel Events: From Registration to Queued Listeners
Laravel Tech Community
Laravel Tech Community
Apr 17, 2020 · Backend Development

Master Real‑Time Laravel Event Broadcasting with WebSockets

This guide explains how to configure Laravel's broadcasting system, choose drivers like Pusher, Redis, or Socket.IO, implement event classes, set up channel authorization, and listen for real‑time updates in JavaScript using Laravel Echo for seamless WebSocket communication.

Event BroadcastingLaravelLaravel Echo
0 likes · 15 min read
Master Real‑Time Laravel Event Broadcasting with WebSockets
360 Zhihui Cloud Developer
360 Zhihui Cloud Developer
Apr 16, 2020 · Backend Development

Build a Basic PHP Extension: Step‑by‑Step Guide

This guide walks you through creating a simple PHP extension, from generating the skeleton with ext_skel.php to understanding each generated file—config.m4, config.w32, php_test.h, test.c, and tests—so you can confidently build and install your own extension.

Backend DevelopmentC++Extension Development
0 likes · 3 min read
Build a Basic PHP Extension: Step‑by‑Step Guide
360 Zhihui Cloud Developer
360 Zhihui Cloud Developer
Apr 16, 2020 · Backend Development

How to Build and Install a PHP Extension from Scratch

This guide walks you through creating a PHP extension, covering environment setup, using phpize, configuring, compiling with make, installing the shared test.so module, adding it to php.ini, and verifying its functionality with command‑line tests, preparing you for production deployment.

BackendCompilationExtension Development
0 likes · 3 min read
How to Build and Install a PHP Extension from Scratch
Laravel Tech Community
Laravel Tech Community
Apr 16, 2020 · Backend Development

Laravel Eloquent Relationship Types and Usage Guide

This guide explains Laravel Eloquent's relationship types—including one-to-one, one-to-many, many-to-many, polymorphic and has‑many‑through—showing how to define, query, preload, and manipulate them with PHP code examples and detailed explanations for backend development in applications.

BackendEloquentLaravel
0 likes · 26 min read
Laravel Eloquent Relationship Types and Usage Guide
Laravel Tech Community
Laravel Tech Community
Apr 16, 2020 · Backend Development

Laravel Eloquent ORM: Defining Models, Queries, and Data Operations

This tutorial explains how to configure Laravel's Eloquent ORM, create and customize model classes, manage table names, primary keys, timestamps, perform queries, insert, update, delete records, handle soft deletes, apply global and local scopes, and work with model events and observers, all with practical PHP code examples.

EloquentLaravelModel
0 likes · 22 min read
Laravel Eloquent ORM: Defining Models, Queries, and Data Operations
Laravel Tech Community
Laravel Tech Community
Apr 16, 2020 · Backend Development

Laravel Eloquent: Serializing Models and Collections to Arrays and JSON, Hiding Attributes, Appending Values, and Custom Date Formats

This guide explains how Laravel Eloquent can serialize models and their relationships to arrays or JSON, control visible and hidden attributes, append custom values, and customize date formatting using casts and Carbon serialization, with practical code examples for each feature.

BackendEloquentJSON
0 likes · 7 min read
Laravel Eloquent: Serializing Models and Collections to Arrays and JSON, Hiding Attributes, Appending Values, and Custom Date Formats
Laravel Tech Community
Laravel Tech Community
Apr 16, 2020 · Backend Development

Understanding Laravel Eloquent Collections and Their Methods

This article explains how Laravel Eloquent returns Collection objects, demonstrates iterating and chaining collection methods such as reject and map, lists the extensive base collection API, and shows how to create custom collections by overriding the newCollection method in a model.

Backend DevelopmentCollectionsEloquent
0 likes · 5 min read
Understanding Laravel Eloquent Collections and Their Methods
Laravel Tech Community
Laravel Tech Community
Apr 15, 2020 · Backend Development

Laravel Pagination: Using Query Builder, Eloquent, Simple Pagination, and Custom Views

This guide explains how Laravel's paginator integrates with the query builder and Eloquent ORM, shows basic and simple pagination methods, demonstrates manual paginator creation, customizing URIs, appending parameters, converting results to JSON, and customizing pagination views, all with code examples compatible with Bootstrap.

Backend DevelopmentBootstrapEloquent
0 likes · 10 min read
Laravel Pagination: Using Query Builder, Eloquent, Simple Pagination, and Custom Views
Laravel Tech Community
Laravel Tech Community
Apr 15, 2020 · Backend Development

Using Laravel Seeders to Populate a Database with Test Data

This guide explains how to use Laravel seeders to generate test data, covering creation of seeder classes via Artisan, inserting records manually or with model factories, calling additional seeders, and the commands needed to run or refresh database seeding.

BackendLaravelPHP
0 likes · 4 min read
Using Laravel Seeders to Populate a Database with Test Data
Laravel Tech Community
Laravel Tech Community
Apr 14, 2020 · Backend Development

Master Laravel Authentication: From Scaffold to Custom Guard

This guide walks you through Laravel's built‑in authentication scaffolding, database requirements, route and view generation, customizing redirects, usernames, guards, validation, and storage, plus advanced techniques like manual authentication, HTTP basic auth, custom guards, and user providers, all with clear code examples.

BackendGuardLaravel
0 likes · 22 min read
Master Laravel Authentication: From Scaffold to Custom Guard
Laravel Tech Community
Laravel Tech Community
Apr 14, 2020 · Information Security

How to Secure Laravel APIs with Passport: A Complete OAuth2 Guide

This guide explains how to use Laravel Passport to implement OAuth2 authentication for API endpoints, covering installation, database migrations, token generation, client management, scope definition, route protection, JavaScript integration, event handling, and testing with detailed code examples.

API authenticationLaravelOAuth2
0 likes · 25 min read
How to Secure Laravel APIs with Passport: A Complete OAuth2 Guide
Laravel Tech Community
Laravel Tech Community
Apr 14, 2020 · Backend Development

Laravel Authorization: Using Gates and Policies

This guide explains Laravel's built‑in authorization features, covering how to define and register Gates and Policies, how to check permissions via the Gate facade, middleware, controller helpers, Blade directives, and includes practical code examples for common CRUD actions.

AuthorizationLaravelPHP
0 likes · 15 min read
Laravel Authorization: Using Gates and Policies
Laravel Tech Community
Laravel Tech Community
Apr 14, 2020 · Backend Development

Laravel Password Reset Implementation Guide

This guide explains how to enable Laravel's built‑in password reset feature by running the make:auth command, configuring the user model, migrating the reset token table, setting up routes and views, customizing guards, brokers, and notification emails, and adjusting token expiration.

BackendLaravelPHP
0 likes · 6 min read
Laravel Password Reset Implementation Guide
Laravel Tech Community
Laravel Tech Community
Apr 13, 2020 · Backend Development

Laravel Blade Template Engine: Inheritance, Components, Slots, Data Display, Flow Control and Extending Blade

This article provides a comprehensive guide to Laravel's Blade templating engine, covering file structure, layout inheritance, sections, components and slots, data rendering, integration with JavaScript frameworks, conditional statements, loops, view inclusion, collection rendering, and how to create custom Blade directives.

BladeLaravelPHP
0 likes · 14 min read
Laravel Blade Template Engine: Inheritance, Components, Slots, Data Display, Flow Control and Extending Blade
Xueersi Online School Tech Team
Xueersi Online School Tech Team
Mar 20, 2020 · Backend Development

Optimizing Data Transfer in Swoole 4.5: Reducing Memory Copies Between Master and Worker Processes

This article analyzes the performance bottleneck in Swoole 4.5 where the master process copies data twice before delivering it to worker processes, explains the underlying C functions and data flow, and presents two code‑level optimizations that consolidate buffers and eliminate redundant copies, resulting in a four‑fold speedup of the onMessage callback.

IPCPHPSwoole
0 likes · 17 min read
Optimizing Data Transfer in Swoole 4.5: Reducing Memory Copies Between Master and Worker Processes
Efficient Ops
Efficient Ops
Mar 15, 2020 · Operations

How to Boost Web Server Performance: Practical Optimization Strategies

This article analyzes the steps of web page handling, identifies eleven key factors that affect server response time, and presents a comprehensive set of practical optimization measures—including hardware upgrades, OS migration, Nginx deployment, PHP caching, MySQL tuning, and CDN usage—to dramatically improve web server performance for a high‑traffic forum site.

PHPserver optimization
0 likes · 13 min read
How to Boost Web Server Performance: Practical Optimization Strategies
MaGe Linux Operations
MaGe Linux Operations
Feb 28, 2020 · Cloud Computing

How to Install Nextcloud on CentOS 7: Step‑by‑Step Guide

This guide walks you through installing and configuring Nextcloud on CentOS 7, covering dependencies, Apache, MariaDB, PHP, Nextcloud deployment, virtual‑host setup, and final login verification, enabling a fully functional private cloud storage service.

ApacheCentOSInstallation
0 likes · 5 min read
How to Install Nextcloud on CentOS 7: Step‑by‑Step Guide
21CTO
21CTO
Feb 10, 2020 · Backend Development

Top 8 PHP Libraries for Efficient Web Scraping

This article reviews eight PHP web‑scraping libraries—Goutte, Simple HTML DOM, htmlSQL, cURL, Request, HTTPful, Buzz, and Guzzle—detailing their features, requirements, licensing, and documentation to help developers choose the right tool for their backend data‑extraction projects.

BackendGoutteGuzzle
0 likes · 9 min read
Top 8 PHP Libraries for Efficient Web Scraping
Laravel Tech Community
Laravel Tech Community
Jan 3, 2020 · Backend Development

Laravel Logging System Overview and Configuration Guide

This article explains Laravel's powerful logging facilities built on Monolog, describes the configuration file location, details available channel drivers, shows how to set up single, daily, stack, Slack, Papertrail and custom channels, and provides code examples for writing log messages and customizing Monolog handlers.

BackendConfigurationLaravel
0 likes · 14 min read
Laravel Logging System Overview and Configuration Guide