Laravel 5.0 Documentation
Miscellaneous xiv. Localization i. Introduction ii. Language Files iii. Basic Usage iv. Pluralization v. Validation Localization vi. Overriding Package Language Files xv. Mail i. Configuration ii. Basic Global Scopes ix. Relationships x. Querying Relations xi. Eager Loading xii. Inserting Related Models xiii. Touching Parent Timestamps xiv. Working With Pivot Tables xv. Collections xvi. Accessors (PSR-4) throughout the application. First, let's examine some of the major changes: The old app/models directory has been entirely removed. Instead, all of your code lives directly within the app folder0 码力 | 242 页 | 1.44 MB | 1 年前3
Laravel 3.2 Documentation......................... 27 Models & Libraries .......................................................................................................... 27 Models................................ ............................................................................. 70 Retrieving A Language Line .......................................................................................... ................................................................................ 86 Retrieving Models ................................................................................................0 码力 | 139 页 | 1.13 MB | 1 年前3
Laravel 6.0 中文文档录结构,因为 Laravel 对于指定类在何处被加载没有任何限制 —— 只要 Composer 可以自动载入它们即可。 Models 目录在哪里? 许多初学者都会困惑 Laravel 为什么没有提供 models 目录,我可以 负责任的告诉大家,这是故意的。因为 models 这个词对不同人而言 有不同的含义,容易造成歧义,有些开发者认为应用的模型指的是业 务逻辑,另外一些人则认为模型指的是与关联数据库的交互。 Laravel 框架作者的想法,不过对于国内开发者,尤其是 PHP 开发者来说,models 目录用于存放与数据库交互的模型类应该没有 什么异议,而业务逻辑应该放到 services 这种目录之下。所以推荐 大家在生成模型类的时候指定生成到 app/Models 目录下: php artisan make:model Models/Test 根目录 应用目录 app 目录包含了应用的核心代码,注意不是框架的核心代码,框架的 为了方便起见,你可以通过设置队列任务 的 deleteWhenMissingModels 属性为 true 来选择自动删除缺失模 型实例的任务: /** * Delete the job if its models no longer exist. * 本文档由学院君提供 学院君致力于提供优质 Laravel 中文学习资源:https://xueyuanjun.com 918 * @var bool0 码力 | 1442 页 | 14.66 MB | 1 年前3
Learning LaravelThrow 404 if entity not found 75 Cloning Models 75 Chapter 22: Eloquent : Relationship 76 Examples 76 Querying on relationships 76 Inserting Related Models 76 Introduction 77 Relationship Types 77 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: Accessors work https://riptutorial.com/ 2 together: models, views and controllers. Controllers are the main part where most of the work is done. They connect to models to get, create or update data and display0 码力 | 216 页 | 1.58 MB | 1 年前3
The Laravel Handbook
app”. PHP is often diregarded by developers, but it has some unique features that make it a great language for Web Development and Laravel figured out how to take advantage of the best features of PHP. in Laravel, as it can do a lot of useful 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 view files that end with .blade.php and are Blade templates. Blade is a server-side templating language. In its basic form it’s HTML. As you can see, those templates I used above don’t have anything0 码力 | 111 页 | 14.25 MB | 1 年前3
Laravel 5.6 中文文档构,因为 Laravel 对于指定类在何处被加载没有任何限制 —— 只要 Composer 可以自动载入它们即可。 Models 目录在哪里? 许多初学者都会困惑 Laravel 为什么没有提供 models 目录,我可以负责任的告诉大家,这是故意的。因为 models 这个词对不同人而言有不同的含 义,容易造成歧义,有些开发者认为应用的模型指的是业务逻辑,另外一些人则认为模型指的是与关联数据库的交互。 Laravel 框架作者的想法,不过对于国内开发者,尤其是 PHP 开发者来说,models 目录用于存放与数据库交互的模型类应该没有什么异议, 而业务逻辑应该放到 services 这种目录之下。所以推荐大家在生成模型类的时候指定生成到 app/Models 目录下: php artisan make:model Models/Test 根目录 App 目录 app 目录包含了应用 PostgresSQL)上使用操作符 -> 获取指定 JSON 字段值: $users = DB::table('users') ->where('options->language', 'en') ->get(); $users = DB::table('users') ->where('pref0 码力 | 377 页 | 14.56 MB | 1 年前3
Laravel 5.3 中文文档以自己按照喜好重新组织应用目录结构,Laravel 对类在何处被加载没有任何限制——只要 Composer 可以自动载入它们即可。 Models 目录在哪里? 许多初学者都会困惑 Laravel 为什么没有 models 目录,我可以负责任的告诉大家,这是故意的。 因为 models 这个词对不同人而言有不同的含义,容易造成歧义,有些开发者认为应用的模型指 本文档由 Laravel 学院(LaravelAcademy Postgres)上使用操作符-> 查询 JSON 字段类型: $users = DB::table('users') ->where('options->language', 'en') ->get(); $users = DB::table('users') ->where('pre Model; class Comment extends Model { /** * Get all of the owning commentable models. */ public function commentable() { return $this->morphTo(); }0 码力 | 691 页 | 9.37 MB | 1 年前3
《Slides Dev Web》 06. HTTP & AJAX
Accept-Encoding: gzip[CRLF] Accept-Charset: ISO-8859-1,UTF-8;q=0.7,*;q=0.7[CRLF] Cache-Control: no[CRLF] Accept-Language: de,en;q=0.7,en-us;q=0.3[CRLF] Referer: http://web-sniffer.net/[CRLF] [CRLF] • Réponse HTTP Status partage, …) • POST – Faire quelque chose – Données sensibles – Longueur limitée par le serveur (assez large) – Utilisation de la méthode send() de XHR – Requête Ajax en 2 temps (entête, puis données) Envoi0 码力 | 11 页 | 91.09 KB | 1 年前3
Laravel 5.1 中文文档@param array $models * @return \Illuminate\Database\Eloquent\Collection */ public function newCollection(array $models = []) { return new CustomCollection($models); } }0 码力 | 307 页 | 3.46 MB | 1 年前3
Laravel 5.2 中文文档@param array $models * @return \Illuminate\Database\Eloquent\Collection */ public function newCollection(array $models = []) { return new CustomCollection($models); } }0 码力 | 377 页 | 4.56 MB | 1 年前3
共 13 条
- 1
- 2













