Learning Laravel
Running a Seeder 60 Creating a Seed 60 Inserting Data using a Seeder 60 Inserting data with a Model Factory 61 Seeding with MySQL Dump 61 Using faker And ModelFactories to generate Seeds 62 Chapter 65 Chapter 20: Directory Structure 68 Examples 68 Change default app directory 68 Override Application class 68 Calling the new class 68 Composer 69 Change the Controllers directory 69 Chapter 21: Types 77 One to Many 77 One to One 78 How to associate between two models (example: User and Phone model) 78 Explanation 79 Many to Many 79 Polymorphic 80 Many To Many 82 Chapter 23: Eloquent: Accessors0 码力 | 216 页 | 1.58 MB | 1 年前3Laravel 3.2 Documentation
Different? ....................................................................................... 1 Application Structure .................................................................................... ........................................................................... 112 Authentication Model ................................................................................................. ....................................................................................... 118 Application Configuration (More Information) .............................................................0 码力 | 139 页 | 1.13 MB | 1 年前3The Laravel Handbook
stuff for you. For example we’ll use it to “scaffold” models without having to create files by hand. Open your browser and you’ll see the default welcome screen of a Laravel app: 7 If you have troubles troubles reaching this stage, the official documentation has great guides for macOS, Linux and Windows. Open the newly created project folder in VS Code. This should be the file structure: 8 While you’re you see in the browser. 11 Open the routes folder and you’ll 4 files. Open web.php : This is the code that displays the sample home page of the Laravel application: 12 We made a request to the0 码力 | 111 页 | 14.25 MB | 1 年前3CakePHP Cookbook 4.x
Contents CakePHP at a Glance Conventions Over Configuration The Model Layer The View Layer The Controller Layer CakePHP Request Cycle Just the Start Additional Reading Where to Get Help CakePHP Conventions our Installation CMS Tutorial - Creating the Database Database Configuration Creating our First Model CMS Tutorial - Creating the Articles Controller Create the Article List Template Create the View Guide Fix Deprecation Warnings Upgrade to PHP 8.0 Use the Upgrade Tool Update CakePHP Dependency Application.php 4.0 Migration Guide Deprecated Features Removed Deprecations Breaking Changes New Features0 码力 | 1249 页 | 1.04 MB | 1 年前3CakePHP Cookbook 4.x
Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 The Model Layer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 181 7 Configuration 189 Configuring your Application . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 189 Additional . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 261 Paginating a Model . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2610 码力 | 967 页 | 2.88 MB | 1 年前3CakePHP Cookbook 3.x
Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 The Model Layer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 214 7 Configuration 219 Configuring your Application . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 219 Environment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 291 Paginating a Model . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2920 码力 | 967 页 | 2.80 MB | 1 年前3CakePHP Cookbook 3.x
Contents CakePHP at a Glance Conventions Over Configuration The Model Layer The View Layer The Controller Layer CakePHP Request Cycle Just the Start Additional Reading Where to Get Help CakePHP Conventions our Installation CMS Tutorial - Creating the Database Database Configuration Creating our First Model CMS Tutorial - Creating the Articles Controller Create the Article List Template Create the View our Installation CMS Tutorial - Creating the Database Database Configuration Creating our First Model CMS Tutorial - Creating the Articles Controller Create the Article List Template Create the View0 码力 | 1244 页 | 1.05 MB | 1 年前3Laravel 5.0 Documentation
Protection iii. Method Spoofing iv. Route Parameters v. Named Routes vi. Route Groups vii. Route Model Binding viii. Throwing 404 Errors ii. Middleware i. Introduction ii. Defining Middleware iii Overview iii. Focus On Service Providers vi. Application Structure i. Introduction ii. The Root Directory iii. The App Directory iv. Namespacing Your Application 6. Services i. Authentication i. Introduction Tests v. Mocking Facades vi. Framework Assertions vii. Helper Methods viii. Refreshing The Application xxii. Validation i. Basic Usage ii. Controller Validation iii. Form Request Validation iv0 码力 | 242 页 | 1.44 MB | 1 年前3CakePHP Cookbook 2.x
Configuration Optional Configuration A Note on mod_rewrite Blog Tutorial - Adding a layer Create a Post Model Create a Posts Controller Creating Post Views Adding Posts Data Validation Editing Posts Deleting Rewriting Fire It Up CakePHP Overview What is CakePHP? Why use it? Understanding Model-View-Controller The Model layer The View layer The Controller layer CakePHP request cycle Benefits Where to Get Retrieving Your Data Saving Your Data Deleting Data Data Validation Callback Methods Behaviors DataSources Model Attributes Additional Methods and Properties Virtual fields Transactions Core Libraries General0 码力 | 1096 页 | 958.62 KB | 1 年前3CakePHP Cookbook 2.x
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37 Understanding Model-View-Controller . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38 Where . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 650 Improve your application’s performance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 650 12 Tutorials 654 Simple Authentication and Authorization Application . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 665 Simple Acl controlled Application . . . . . . . . . . . . . . . . . . . . . . .0 码力 | 820 页 | 2.52 MB | 1 年前3
共 83 条
- 1
- 2
- 3
- 4
- 5
- 6
- 9