Laravel up and running a framework for building modern PHP apps
What sets Laravel apart from other PHP web frameworks? Speed and simplicity, for starters. This rapid application development framework and its ecosystem of tools let you quickly build new sites and applications with clean, readable code. Fully updated to include Laravel 10, the third edition of thi...
Otros Autores: | |
---|---|
Formato: | Libro electrónico |
Idioma: | Inglés |
Publicado: |
Sebastopol :
O'Reilly Media, Inc
2023.
|
Edición: | Third edition |
Materias: | |
Ver en Biblioteca Universitat Ramon Llull: | https://discovery.url.edu/permalink/34CSUC_URL/1im36ta/alma991009766136406719 |
Tabla de Contenidos:
- Intro
- Table of Contents
- Preface
- What This Book Is About
- Who This Book Is For
- How This Book Is Structured
- About the Third Edition
- Conventions Used in This Book
- O'Reilly Online Learning
- How to Contact Us
- Acknowledgements
- Chapter 1. Why Laravel?
- Why Use a Framework?
- "I'll Just Build It Myself"
- Consistency and Flexibility
- A Short History of Web and PHP Frameworks
- Ruby on Rails
- The Influx of PHP Frameworks
- The Good and the Bad of CodeIgniter
- Laravel 1, 2, and 3
- Laravel 4
- Laravel 5
- Laravel 6
- Laravel Versions in the New SemVer World (6+)
- What's So Special About Laravel?
- The Philosophy of Laravel
- How Laravel Achieves Developer Happiness
- The Laravel Community
- How It Works
- Why Laravel?
- Chapter 2. Setting Up a Laravel Development Environment
- System Requirements
- Composer
- Local Development Environments
- Artisan Serve
- Laravel Sail
- Laravel Valet
- Laravel Herd
- Laravel Homestead
- Creating a New Laravel Project
- Installing Laravel with the Laravel Installer Tool
- Installing Laravel with Composer's create-project Feature
- Installing Laravel with Sail
- Laravel's Directory Structure
- The Folders
- The Loose Files
- Configuration
- The .env File
- Up and Running
- Testing
- TL
- DR
- Chapter 3. Routing and Controllers
- A Quick Introduction to MVC, the HTTP Verbs, and REST
- What Is MVC?
- The HTTP Verbs
- What Is REST?
- Route Definitions
- Route Verbs
- Route Handling
- Route Parameters
- Route Names
- Route Groups
- Middleware
- Path Prefixes
- Subdomain Routing
- Name Prefixes
- Route Group Controllers
- Fallback Routes
- Signed Routes
- Signing a Route
- Modifying Routes to Allow Signed Links
- Views
- Returning Simple Routes Directly with Route::view()
- Using View Composers to Share Variables with Every View
- Controllers
- Getting User Input
- Injecting Dependencies into Controllers
- Resource Controllers
- API Resource Controllers
- Single Action Controllers
- Route Model Binding
- Implicit Route Model Binding
- Custom Route Model Binding
- Route Caching
- Form Method Spoofing
- HTTP Verbs in Laravel
- HTTP Method Spoofing in HTML Forms
- CSRF Protection
- Redirects
- redirect()->to()
- redirect()->route()
- Redirect()->back()
- Other Redirect Methods
- redirect()->with()
- Aborting the Request
- Custom Responses
- response()->make()
- response()->json() and ->jsonp()
- response()->download(), ->streamDownload(), and ->file()
- Testing
- TL
- DR
- Chapter 4. Blade Templating
- Echoing Data
- Control Structures
- Conditionals
- Loops
- Template Inheritance
- Defining Sections with @section/@show and @yield
- Including View Partials
- Using Components
- Using Stacks
- View Composers and Service Injection
- Binding Data to Views Using View Composers
- Blade Service Injection