Laravel 3.2 Documentation
........................................................................................ 85 Eloquent ORM ............................................................................................. bundles directory or use the "Artisan" command-line tool to automatically install them. The Eloquent ORM is the most advanced PHP ActiveRecord implementation available. With the capacity to easily apply you'll have complete control over your data with all of the 2 conveniences of ActiveRecord. Eloquent natively supports all of the methods from Laravel's Fluent query-builder. Application Logic0 码力 | 139 页 | 1.13 MB | 1 年前3Learning Laravel
Laravel 2 Main Features 2 MVC 2 Blade Templating Engine 3 Routing & Middleware 3 Artisan 3 Eloquent ORM 3 Event Handling 3 Versions 3 Examples 4 Welcome to Laravel tag documentation! 4 Starter class 68 Calling the new class 68 Composer 69 Change the Controllers directory 69 Chapter 21: Eloquent 70 Introduction 70 Remarks 70 Examples 70 Introduction 70 Sub-topic Navigation 71 Persisting primary key and timestamps 74 Throw 404 if entity not found 75 Cloning Models 75 Chapter 22: Eloquent : Relationship 76 Examples 76 Querying on relationships 76 Inserting Related Models 76 Introduction0 码力 | 216 页 | 1.58 MB | 1 年前3Laravel 5.0 Documentation
Expressions vii. Inserts viii. Updates ix. Deletes x. Unions xi. Pessimistic Locking iii. Eloquent ORM i. Introduction ii. Basic Usage iii. Mass Assignment iv. Insert, Update, Delete v. Soft Deleting within the framework itself. More information on the new SoftDeletingTrait may be found in the Eloquent documentation. The default Laravel 4.2 installation now uses simple traits for including the needed default User model file out of the box. A new simplePaginate method was added to the query and Eloquent builder which allows for more efficient queries when using simple "Next" and "Previous" links in0 码力 | 242 页 | 1.44 MB | 1 年前3The Laravel Handbook
a model in app/Models/Dog.php : Notice the class inclues some classes under a “Eloquent” folder. Eloquent is an ORM (object-relational mapper), a tool that basically lets us interact with a database this: Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class Dog extends Model { use HasFactory; ['name']; Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class Dog extends Model { use HasFactory;0 码力 | 111 页 | 14.25 MB | 1 年前3《Slides Dev Web》02. Introduction aux frameworks PHP
org/web/20160316065751/http://blog.mazenod.fr/2010/01/design-pattern-mvc-zoom-sur-la- couche-modele-dal-dao-orm-crud/ 6http://ui-patterns.com/ 2 Figure 1: MVC 3 Bonnes pratiques • Heavy Model, Light Controller code qu’une appli standalone – Plus de requêtes • Solutions – Cache de pages, d’opcode – Jointures ORM, vues, procédures stockées – Outils d’optimisation : YSlow, page speed, mytop 6 Frameworks PHP • réelle de notre base de données et offrir une interface orientée objet. Un Object-Relational Mapping ou ORM(3) dans le jargon. query( "SELECT * FROM `personnes` ". "WHERE0 码力 | 24 页 | 1.03 MB | 1 年前3《Slides Dev Web》 03. Laravel
positories 7https://madewithlaravel.com/ 1 Principales fonctionnalités • Routes RESTful • ORM (Eloquent, implémentation du pattern Active Record) • Migrations • Moteur de templates (Blade) • Pagination Controller Architecture MVC • Structure d’une appli web = cycle Requête/Reponse9 • Modèle : Eloquent ORM • Vue : Blade Engine • Contrôleur : hérite de BaseController Pratique • Conventions de codage0 码力 | 8 页 | 224.34 KB | 1 年前3The PHP Handbook
say that if you need a database you should use a framework or ORM that would save you security issues with SQL injection. Laravel’s Eloquent is a great example. 21.10. JSON JSON is a portable data format0 码力 | 97 页 | 8.78 MB | 1 年前3CakePHP Cookbook 3.x
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 351 12 Database Access & ORM 463 Quick Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . “Comment”, or “Photo”. If we wanted to load some data from our users table we could do: use Cake\ORM\TableRegistry; (continues on next page) 1 CakePHP Cookbook Documentation, Release 3.10 (continued If we wanted to make a new user and save it (with validation) we would do something like: use Cake\ORM\TableRegistry; // Prior to 3.6 use TableRegistry::get('Users') $users = TableRegistry::getTableLo0 码力 | 967 页 | 2.80 MB | 1 年前3CakePHP Cookbook Documentation 5.x
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 219 12 Database Access & ORM 321 Quick Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . “Comment”, or “Photo”. If we wanted to load some data from our users table we could do: use Cake\ORM\Locator\LocatorAwareTrait; (continues on next page) 1 CakePHP Cookbook Documentation, Release 5 If we wanted to make a new user and save it (with validation) we would do something like: use Cake\ORM\Locator\LocatorAwareTrait; $users = $this->getTableLocator()->get('Users'); $user = $users->newEntity(['email'0 码力 | 848 页 | 2.53 MB | 1 年前3CakePHP Cookbook 4.x
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 317 12 Database Access & ORM 419 Quick Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . “Comment”, or “Photo”. If we wanted to load some data from our users table we could do: use Cake\ORM\Locator\LocatorAwareTrait; (continues on next page) 1 CakePHP Cookbook Documentation, Release 4 If we wanted to make a new user and save it (with validation) we would do something like: use Cake\ORM\Locator\LocatorAwareTrait; $users = $this->getTableLocator()->get('Users'); $user = $users->newEntity(['email'0 码力 | 967 页 | 2.88 MB | 1 年前3
共 561 条
- 1
- 2
- 3
- 4
- 5
- 6
- 57