Knowledgebase

Viewing articles tagged 'phplaravel'

Advanced Practice: Everything That Matters, Briefly The summary.EVERYTHING IN A SERVICE PROVIDER'S BOOT METHOD COSTS EVERY REQUESTNo queries, no... Arranging Directories on cPanel The structure that works.THE PROBLEMcPanel serves a specific directory, and Laravel expects only... Assessing Legacy PHP Code Judging what you have.WHAT TO LOOK FORThe PHP version required Whether queries are parameterised... Authentication and Authorisation Who is signed in, and what they may do.WHAT AUTHENTICATION ISEstablishing who someone is.WHAT... Avoiding the Query Multiplication Problem The most common performance fault.WHAT HAPPENSA list of records is retrieved with one query.Then,... Building APIs With Laravel Programmatic interfaces.WHAT TO DEFINERoutes in the API route file, which applies appropriate... Building Forms in Blade Form markup.WHAT EVERY FORM NEEDSThe correct method The request protection token Labels... Building Reusable Blade Components Shared interface pieces.WHAT A COMPONENT ISA reusable template fragment with its own... Caching Storing expensive results.WHAT TO CACHEExpensive queries Computed results External API responses... Checklist: Taking a Laravel Application Live Before launch.CONFIGURATIONEnvironment set to production Debug mode off Application key set... Common PHP Security Failures What actually goes wrong.OUTDATED PHP OR DEPENDENCIESKnown vulnerabilities, publicly documented... Composer and Dependency Management Using libraries.WHAT COMPOSER ISThe standard tool for managing PHP dependencies.WHAT IT... Configuring Database Access Connecting.WHAT TO SETThe connection type, host, database name, username and password.WHEREIn the... Configuring the Environment on Your Hosting Settings in production.WHAT TO CREATEThe environment file, on the server, from your example.WHAT... Consuming External APIs Calling other services.WHAT THE FRAMEWORK PROVIDESAn HTTP client with a clear interface.WHAT TO... Controllers and Handling Requests Where request handling lives.WHAT A CONTROLLER DOESReceives a request, coordinates a... Database and Eloquent: Everything That Matters, Briefly The summary.ON CPANEL, DATABASE AND USER NAMES ARE PREFIXED WITH YOUR ACCOUNT NAMEConfiguration... Database Performance Making queries fast.WHAT TO MEASURE FIRSTWhich queries are slow, and how many run per... Dates and Times in PHP Temporal values.WHAT TO USEThe object-based date handling, rather than older function-based... Debugging Laravel Applications Finding problems.WHERE TO LOOK FIRSTThe application log.WHAT IT CONTAINSThe exception, the... Deploying Changes Safely Updating a live application.WHAT TO PREPAREA tested change A backup of files and database A way... Deploying on cPanel: Everything That Matters, Briefly The summary.NEVER UPLOAD A LARAVEL PROJECT INTO THE PUBLIC DIRECTORY AS IT STANDSEverything... Designing Your Database Structure Tables and relationships.WHAT TO ESTABLISHWhat things exist What each holds How they relateWHAT... Displaying Messages and Feedback Telling people what happened.WHAT TO SHOW AFTER AN ACTIONConfirmation of what occurred.HOW... Error Handling in PHP Failing properly.WHAT PHP PRODUCESErrors, at several levels of severity Exceptions, which can be... Events and Decoupling Reacting to things happening.WHAT AN EVENT ISA notification that something occurred.WHAT A... Existing Applications: Everything That Matters, Briefly The summary.WHEN INHERITING AN APPLICATIONBack up, change every credential you control, and put... Formatting Values for Display Presentation of data.WHAT TO FORMAT CONSISTENTLYMoney Dates and times Numbers Quantities and... Functions and Code Organisation Structuring logic.WHAT A FUNCTION ISA named block of code, taking inputs and returning a... Generating Documents and Reports Producing files.WHAT APPLICATIONS COMMONLY GENERATEInvoices Receipts Statements Reports Data... Getting Started With Laravel: Everything That Matters, Briefly The summary.WHAT THE FRAMEWORK BUYS YOURouting, database access, templating, authentication,... Handling Concurrency and Race Conditions Simultaneous requests.WHAT A RACE CONDITION ISTwo requests doing something at the same time,... Handling File Uploads and Storage Files in a Laravel application.WHAT THE FRAMEWORK PROVIDESA storage abstraction with configurable... Handling Incoming Webhooks Receiving notifications.WHAT A WEBHOOK ISAn external service sending a request to your... Handling Passwords Correctly Authentication storage.WHAT TO NEVER DOStore passwords in readable form Use general-purpose... Handling Time Zones for Local Users Time in practice.WHAT TO SETThe application's time zone explicitly.WHAT TO STOREA consistent... Handling Uploads Safely in PHP Accepting files.WHAT TO VALIDATEThat a file was actually uploaded Its size Its type, determined... How a PHP Request Is Handled The request lifecycle.WHAT HAPPENSA request arrives at the web server The server passes it to PHP... Implementing Search Finding records.WHAT SIMPLE SEARCH LOOKS LIKEMatching against columns with a pattern.WHY THAT IS... Improving Legacy Code Safely Change without breaking.WHAT TO DO BEFORE ANY CHANGEVersion control A copy to work on A record of... Installing Dependencies on Your Hosting Composer in a hosting environment.WHERE TO RUN ITThrough terminal access in cPanel, where... Installing Laravel Getting a project started.WHAT YOU NEEDA supported PHP version Composer The required PHP... Integrating Payment Gateways Taking money.WHAT TO USEAn established gateway with a maintained PHP library.WHAT TO NEVER... Keeping a Laravel Application Maintained Ongoing care.WHAT TO DO REGULARLYApply framework and dependency updates Check for security... Logging and Monitoring Knowing what happens in production.WHAT TO LOGStartup problems Handled errors with context... Managing Frontend Assets Styles and scripts.WHAT LARAVEL PROVIDESA build tool configuration for compiling styles and... Managing Sessions Securely Keeping people signed in.WHAT A SESSION ISData associated with a visitor across requests,... Middleware Code that runs around requests.WHAT MIDDLEWARE ISCode that runs before or after a request is... Modern PHP Practices How the language is written now.WHAT TO ADOPTStrict types, declared per file Type declarations on... Moving a Legacy Application to Laravel Migration strategy.WHAT NOT TO DORewrite everything and switch over in one step.WHYIt takes... Optimising Laravel for Production Performance settings.WHAT TO CACHEConfiguration Routes Events Compiled templatesWHYIt removes... Pagination and Long Lists Handling many records.WHY PAGINATELoading thousands of records exhausts memory and produces... PHP and Laravel: Everything That Matters, Briefly The whole category in one page.RUN A SUPPORTED PHP VERSION AND A SUPPORTED FRAMEWORK... PHP Fundamentals: Everything That Matters, Briefly The summary.RUN A SUPPORTED VERSIONUnsupported versions receive no security fixes, which is a... PHP Security: Everything That Matters, Briefly The summary.PARAMETERISE EVERY QUERYWithout exception. Dynamic column and table names cannot be... Preparing a Laravel Application for Shared Hosting What to establish first.WHAT TO CHECKThe PHP version available, against the framework's... Preventing Cross-Site Scripting Content interpreted as code.WHAT IT ISSubmitted content displayed in a page and executed by the... Preventing SQL Injection in PHP The most damaging vulnerability.WHAT IT ISUser input interpreted as part of a database query.WHAT... Protecting Against Cross-Site Request Forgery Actions triggered from elsewhere.WHAT IT ISAnother site causing a visitor's browser to perform an... Protecting Configuration and Credentials Secrets.WHAT COUNTSDatabase credentials API keys Encryption keys Mail credentials Anything... Querying With Eloquent Retrieving data.WHAT YOU CAN DOFilter, sort, limit, group and aggregate, without writing... Queues and Background Work Deferring slow operations.WHAT A QUEUE DOESAccepts work now, performs it later, outside the... Rate Limiting and Throttling Controlling request volume.WHY IT MATTERSWithout limits, anything expensive can be triggered... Reference: Laravel Problems and Where to Look Quick lookup.BLANK PAGEApplication log, then server error log.CHANGES NOT APPEARINGConfiguration... Reference: PHP and Laravel Terms Vocabulary.COMPOSERThe dependency manager for PHP.AUTOLOADINGLoading classes automatically when... Routing Requests Mapping addresses to code.WHAT A ROUTE DOESAssociates a request address and method with code that... Running Artisan Commands on Your Hosting The command-line tool in production.WHERE TO RUN ITTerminal access in cPanel.WHAT TO SPECIFYThe... Scaling a Laravel Application Handling growth.WHAT TO DO FIRSTMeasure.Establish which pages are slow and why.WHAT USUALLY HELPS... Scheduling Recurring Tasks Work that runs on a timetable.WHAT THE FRAMEWORK PROVIDESA scheduler defined in code, listing... Seeding and Test Data Populating a database.WHAT SEEDING ISFilling a database with data, programmatically.WHAT IT IS... Sending Mail Application email.WHAT THE FRAMEWORK PROVIDESMail classes, templates, and configurable... Separating Logic From Presentation Structure that scales.THE PROBLEMPHP allows mixing logic and markup freely.WHAT THAT... Setting File Permissions What must be writable.WHAT NEEDS TO BE WRITABLEThe storage directory and its contents The... Setting Up the Scheduler and Queues Background work on cPanel.WHAT THE SCHEDULER NEEDSA single cron entry, running every minute,... Soft Deletes and Data Retention Removing records.WHAT SOFT DELETING ISMarking a record as deleted rather than removing it.WHY USE... Structuring Application Logic Where code belongs.THE PROBLEMLogic accumulating in controllers and models until neither can be... Supporting Several Languages Localisation.WHAT THE FRAMEWORK PROVIDESTranslation files, and helpers for retrieving... Taking Over an Existing PHP Application Inheriting code.WHAT TO ESTABLISH FIRSTWhat it doesWhat it runs on: PHP version, framework,... Testing Laravel Applications Automated verification.WHAT THE FRAMEWORK PROVIDESA testing setup, a separate testing database... Transactions and Data Integrity Changes that must succeed together.WHAT A TRANSACTION ISA group of changes applied entirely or... Troubleshooting Laravel on Shared Hosting Common failures.BLANK PAGE OR SERVER ERRORRead the log first, then the server error log.Debug... Understanding Eloquent Models The ORM.WHAT A MODEL ISA class representing a table, with instances representing rows.WHAT IT... Understanding Environment Configuration Settings that differ.WHAT THE ENVIRONMENT FILE ISA file of key and value pairs, read at startup,... Understanding Migrations Schema as code.WHAT A MIGRATION ISA file describing a change to the database structure.WHY USE... Understanding PHP Versions Which version to run.WHY IT MATTERSEach version brings performance improvements, new features,... Understanding Relationships Connecting models.WHAT KINDS EXISTOne record having one other One record having many A record... Understanding the Laravel Project Structure Where things live.WHAT THE MAIN DIRECTORIES HOLDApplication code: controllers, models, and your... Understanding the Request Lifecycle What happens on every request.THE SEQUENCEThe request reaches the single entry point The... Understanding the Service Container How dependencies are provided.WHAT IT ISA mechanism that creates objects and supplies what they... Using the Query Builder When Eloquent is not the right tool.WHEN TO USE ITComplex aggregations Reports across several... Validating and Sanitising Input Trusting nothing.WHERE INPUT COMES FROMForms URLs and query strings Headers and cookies Uploaded... Validating Input in Laravel Checking what arrives.WHAT THE FRAMEWORK PROVIDESA validation system with a large set of... Variables, Types and Arrays The basics.WHAT A VARIABLE ISA name holding a value, marked with a leading symbol.WHAT TYPES... Views and Frontend: Everything That Matters, Briefly The summary.VERSIONED ASSET FILENAMESWithout them, browsers serve cached styles and a change... What Laravel Provides Why use a framework.WHAT IT GIVES YOURouting Request and response handling Database access and an... What PHP Is and Where It Runs An introduction.WHAT IT ISA programming language designed for building websites and web... Working With Blade Templates Producing output.WHAT BLADE ISLaravel's template engine.WHAT IT PROVIDESValue output, escaped by... Working With Collections Handling sets of data.WHAT A COLLECTION ISA wrapper around an array with a large set of... Working With Text in PHP Strings.COMMON OPERATIONSJoining Splitting Searching Replacing Trimming Changing case Formatting... Writing Artisan Commands Your own command-line tools.WHAT THEY ARE FORMaintenance tasks Data imports and exports One-off...
Back

Are you happy with your experience? Leave us a review on Trustpilot.


Trustpilot