 Laravel 3.2 Documentationframeworks. Laravel's flexibility will allow your organization to update and mold the application over time as is needed and its expressiveness will allow you and your team to develop code that is both concise differentiates itself from other frameworks. Here are a few examples that we think make good bullet points:  Bundles are Laravel's modular packaging system. The Laravel Bundle Repository is already populated Laravel will automatically insert the correct URI. This allows you to change your routes at a later time and Laravel will update all of the relevant links site-wide.  Restful Controllers are an optional0 码力 | 139 页 | 1.13 MB | 1 年前3 Laravel 3.2 Documentationframeworks. Laravel's flexibility will allow your organization to update and mold the application over time as is needed and its expressiveness will allow you and your team to develop code that is both concise differentiates itself from other frameworks. Here are a few examples that we think make good bullet points:  Bundles are Laravel's modular packaging system. The Laravel Bundle Repository is already populated Laravel will automatically insert the correct URI. This allows you to change your routes at a later time and Laravel will update all of the relevant links site-wide.  Restful Controllers are an optional0 码力 | 139 页 | 1.13 MB | 1 年前3
 Laravel 5.0 Documentation
cookie was hijacked by another malicious user, the cookie would remain valid for a long period of time, even after the true owner of the account reset their password, logged out, etc. View / Pagination (or equivalent) database table. After this change, a fresh token will be assigned to the user each time they login to your application. The token will also be refreshed when the user logs out of the application advantage of Laravel's route cache. Using the route cache will drastically decrease the amount of time it take to register all of your application's routes. In some cases, your route registration may0 码力 | 242 页 | 1.44 MB | 1 年前3 Laravel 5.0 Documentation
cookie was hijacked by another malicious user, the cookie would remain valid for a long period of time, even after the true owner of the account reset their password, logged out, etc. View / Pagination (or equivalent) database table. After this change, a fresh token will be assigned to the user each time they login to your application. The token will also be refreshed when the user logs out of the application advantage of Laravel's route cache. Using the route cache will drastically decrease the amount of time it take to register all of your application's routes. In some cases, your route registration may0 码力 | 242 页 | 1.44 MB | 1 年前3
 The Laravel Handbook
Handbook Conclusion 2 Preface The Laravel Handbook follows the 80/20 rule: learn in 20% of the time the 80% of a topic. In particular, the goal is to get you up to speed quickly with Laravel. This since 2011, well before modern frontend tools like React and Vue.js existed. It stood the test of time. And it evolved over the years to a serious and complete solution for building Web Applications, Laravel will automatically create a SQLite database in database/database.sqlite the first time you run a migration. 6. How to use migrations to create and modify the database schema Migrations0 码力 | 111 页 | 14.25 MB | 1 年前3 The Laravel Handbook
Handbook Conclusion 2 Preface The Laravel Handbook follows the 80/20 rule: learn in 20% of the time the 80% of a topic. In particular, the goal is to get you up to speed quickly with Laravel. This since 2011, well before modern frontend tools like React and Vue.js existed. It stood the test of time. And it evolved over the years to a serious and complete solution for building Web Applications, Laravel will automatically create a SQLite database in database/database.sqlite the first time you run a migration. 6. How to use migrations to create and modify the database schema Migrations0 码力 | 111 页 | 14.25 MB | 1 年前3
 Learning Laravelthat are called when a view is rendered. If you have data that you want to be bound to a view each time that view is rendered, a view composer can help you organize that logic into a single location. You newest. Generating migration files Creating a new migration file with the correct filename every time you need to change your schema would be a chore. Thankfully, Laravel's artisan command can generate $this->attributes['password'] = bcrypt($password); } ... } Above code does "bcrypting" each time password property is set. $user = $users->first(); $user->password = 'white rabbit'; //laravel calls0 码力 | 216 页 | 1.58 MB | 1 年前3 Learning Laravelthat are called when a view is rendered. If you have data that you want to be bound to a view each time that view is rendered, a view composer can help you organize that logic into a single location. You newest. Generating migration files Creating a new migration file with the correct filename every time you need to change your schema would be a chore. Thankfully, Laravel's artisan command can generate $this->attributes['password'] = bcrypt($password); } ... } Above code does "bcrypting" each time password property is set. $user = $users->first(); $user->password = 'white rabbit'; //laravel calls0 码力 | 216 页 | 1.58 MB | 1 年前3
 Laravel 5.6 中文文档icmp_seq=0 ttl=64 time=0.069 ms 64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0.077 ms 64 bytes from 127.0.0.1: icmp_seq=2 ttl=64 time=0.072 ms 64 bytes from 127.0.0.1: icmp_seq=3 ttl=64 time=0.082 ms 当然,不限制显示到视图中的变量内容,你还可以输出任何 PHP 函数的结果,实际上,可以将任何 PHP 代码放到 Blade 模板语句中: The current UNIX timestamp is {{ time() }}. 注:Blade 的 {{}} 语句已经经过 PHP 的 htmlentities 函数处理以避免 XSS 攻击。 输出存在的数据 有时候你想要输出一个变量,但是不确定该变量是否被设置,我们可以通过如下 函数的第三个数组参数替换: 'minutes_ago' => '{1} :value minute ago|[2,*] :value minutes ago', echo trans_choice('time.minutes_ago', 5, ['value' => 5]); 覆盖 Vendor 包的语言文件 有些扩展包可能会自己处理语言文件。你可以通过将自己的文件放在 resources/l0 码力 | 377 页 | 14.56 MB | 1 年前3 Laravel 5.6 中文文档icmp_seq=0 ttl=64 time=0.069 ms 64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0.077 ms 64 bytes from 127.0.0.1: icmp_seq=2 ttl=64 time=0.072 ms 64 bytes from 127.0.0.1: icmp_seq=3 ttl=64 time=0.082 ms 当然,不限制显示到视图中的变量内容,你还可以输出任何 PHP 函数的结果,实际上,可以将任何 PHP 代码放到 Blade 模板语句中: The current UNIX timestamp is {{ time() }}. 注:Blade 的 {{}} 语句已经经过 PHP 的 htmlentities 函数处理以避免 XSS 攻击。 输出存在的数据 有时候你想要输出一个变量,但是不确定该变量是否被设置,我们可以通过如下 函数的第三个数组参数替换: 'minutes_ago' => '{1} :value minute ago|[2,*] :value minutes ago', echo trans_choice('time.minutes_ago', 5, ['value' => 5]); 覆盖 Vendor 包的语言文件 有些扩展包可能会自己处理语言文件。你可以通过将自己的文件放在 resources/l0 码力 | 377 页 | 14.56 MB | 1 年前3
 Laravel 5.3 中文文档icmp_seq=0 ttl=64 time=0.069 ms 64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0.077 ms 64 bytes from 127.0.0.1: icmp_seq=2 ttl=64 time=0.072 ms 64 bytes from 127.0.0.1: icmp_seq=3 ttl=64 time=0.082 ms 当然,不限制显示到视图中的变量内容,你还可以输出任何 PHP 函数,实际上,可以将任何 PHP 代码放到 Blade 模板语句中: The current UNIX timestamp is {{ time() }}. 注:Blade 的 {{}} 语句已经经过 PHP 的 htmlentities 函数处理以避免 XSS 攻击。 输出存在的数据 有时候你想要输出一个变量,但是不确定该变量是否被设置,我们可以通过如下 ades\Storage; $size = Storage::size('file1.jpg'); lastModified 方法以 UNIX 时间戳格式返回文件最后一次修改时间: $time = Storage::lastModified('file1.jpg'); 5、存储文件 put 方法可用于存储原生文件内容到磁盘。此外,还可以传递一个 PHP 资源到 put 方法,该方法0 码力 | 691 页 | 9.37 MB | 1 年前3 Laravel 5.3 中文文档icmp_seq=0 ttl=64 time=0.069 ms 64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0.077 ms 64 bytes from 127.0.0.1: icmp_seq=2 ttl=64 time=0.072 ms 64 bytes from 127.0.0.1: icmp_seq=3 ttl=64 time=0.082 ms 当然,不限制显示到视图中的变量内容,你还可以输出任何 PHP 函数,实际上,可以将任何 PHP 代码放到 Blade 模板语句中: The current UNIX timestamp is {{ time() }}. 注:Blade 的 {{}} 语句已经经过 PHP 的 htmlentities 函数处理以避免 XSS 攻击。 输出存在的数据 有时候你想要输出一个变量,但是不确定该变量是否被设置,我们可以通过如下 ades\Storage; $size = Storage::size('file1.jpg'); lastModified 方法以 UNIX 时间戳格式返回文件最后一次修改时间: $time = Storage::lastModified('file1.jpg'); 5、存储文件 put 方法可用于存储原生文件内容到磁盘。此外,还可以传递一个 PHP 资源到 put 方法,该方法0 码力 | 691 页 | 9.37 MB | 1 年前3
 Laravel 6.0 中文文档当然,不限制显示到视图中的变量内容,你还可以输出任何 PHP 函 数的结果,实际上,可以将任何 PHP 代码放到 Blade 模板语句中: The current UNIX timestamp is {{ time() }}. 显示原生数据 默认情况下,Blade 的 {{ }} 语句已经通过 PHP 的 htmlentities 函数处理以避免 XSS 攻击,如果你不想要数据被 处理,比如要输出带 函数的第三个数组参数替换: 'minutes_ago' => '{1} :value minute ago|[2,*] :value m inutes ago', echo trans_choice('time.minutes_ago', 5, ['value' => 5]); 如果你想要显示传递到 trans_choice 函数的整型值,可以使 用 :count 占位符: 本文档由学院君提供 学院君致力于提供优质 如果你使用的是 Argon2 算法的话,make 方法允许你使用 memory、 time 以及 threads 选项来管理算法的工作因子;不过,默认配置对 大部分应用而言都是可接受的: $hashed = Hash::make('password', [ 'memory' => 1024, 'time' => 2, 'threads' => 2, ]); 注:更多关于这些选项的信息,请查看0 码力 | 1442 页 | 14.66 MB | 1 年前3 Laravel 6.0 中文文档当然,不限制显示到视图中的变量内容,你还可以输出任何 PHP 函 数的结果,实际上,可以将任何 PHP 代码放到 Blade 模板语句中: The current UNIX timestamp is {{ time() }}. 显示原生数据 默认情况下,Blade 的 {{ }} 语句已经通过 PHP 的 htmlentities 函数处理以避免 XSS 攻击,如果你不想要数据被 处理,比如要输出带 函数的第三个数组参数替换: 'minutes_ago' => '{1} :value minute ago|[2,*] :value m inutes ago', echo trans_choice('time.minutes_ago', 5, ['value' => 5]); 如果你想要显示传递到 trans_choice 函数的整型值,可以使 用 :count 占位符: 本文档由学院君提供 学院君致力于提供优质 如果你使用的是 Argon2 算法的话,make 方法允许你使用 memory、 time 以及 threads 选项来管理算法的工作因子;不过,默认配置对 大部分应用而言都是可接受的: $hashed = Hash::make('password', [ 'memory' => 1024, 'time' => 2, 'threads' => 2, ]); 注:更多关于这些选项的信息,请查看0 码力 | 1442 页 | 14.66 MB | 1 年前3
 Laravel 5.1 中文文档当然,不限制显示到视图中的变量内容,你还可以输出任何 PHP 函数,实际上,可以将任 何 PHP 代码放到 Blade 模板语句中: The current UNIX timestamp is {{ time() }}. 注意:Blade 的{{}}语句已经经过 PHP 的 htmlentities 函数处理以避免 XSS 攻击。 Blade & JavaScript 框架 由于很多 JavaScript @return void */ public function boot() { DB::listen(function($sql, $bindings, $time) { // }); } /** * 注册服务提供者 * * @return void 100); 等同于数据库中的 VARCHAR,带一个长度 $table->text('description'); 等同于数据库中的 TEXT 类型 $table->time('sunrise'); 等同于数据库中的 TIME 类型 $table->tinyInteger('numbers'); 等同于数据库中的 TINYINT 类型 $table->timestamp('added_on');0 码力 | 307 页 | 3.46 MB | 1 年前3 Laravel 5.1 中文文档当然,不限制显示到视图中的变量内容,你还可以输出任何 PHP 函数,实际上,可以将任 何 PHP 代码放到 Blade 模板语句中: The current UNIX timestamp is {{ time() }}. 注意:Blade 的{{}}语句已经经过 PHP 的 htmlentities 函数处理以避免 XSS 攻击。 Blade & JavaScript 框架 由于很多 JavaScript @return void */ public function boot() { DB::listen(function($sql, $bindings, $time) { // }); } /** * 注册服务提供者 * * @return void 100); 等同于数据库中的 VARCHAR,带一个长度 $table->text('description'); 等同于数据库中的 TEXT 类型 $table->time('sunrise'); 等同于数据库中的 TIME 类型 $table->tinyInteger('numbers'); 等同于数据库中的 TINYINT 类型 $table->timestamp('added_on');0 码力 | 307 页 | 3.46 MB | 1 年前3
 Laravel 5.2 中文文档当然,不限制显示到视图中的变量内容,你还可以输出任何 PHP 函数,实际上,可以将 任何 PHP 代码放到 Blade 模板语句中: The current UNIX timestamp is {{ time() }}. 注:Blade 的 {{}} 语句已经经过 PHP 的 htmlentities 函数处理以避免 XSS 攻击。 Blade & JavaScript 框架 由于很多 JavaScript @return void */ public function boot() { DB::listen(function($sql, $bindings, $time) { // }); } /** * 注册服务提供者 * * @return void 100); 等同于数据库中的 VARCHAR,带一个长度 $table->text('description'); 等同于数据库中的 TEXT 类型 $table->time('sunrise'); 等同于数据库中的 TIME 类型 $table->tinyInteger('numbers'); 等同于数据库中的 TINYINT 类型 $table->timestamp('added_on');0 码力 | 377 页 | 4.56 MB | 1 年前3 Laravel 5.2 中文文档当然,不限制显示到视图中的变量内容,你还可以输出任何 PHP 函数,实际上,可以将 任何 PHP 代码放到 Blade 模板语句中: The current UNIX timestamp is {{ time() }}. 注:Blade 的 {{}} 语句已经经过 PHP 的 htmlentities 函数处理以避免 XSS 攻击。 Blade & JavaScript 框架 由于很多 JavaScript @return void */ public function boot() { DB::listen(function($sql, $bindings, $time) { // }); } /** * 注册服务提供者 * * @return void 100); 等同于数据库中的 VARCHAR,带一个长度 $table->text('description'); 等同于数据库中的 TEXT 类型 $table->time('sunrise'); 等同于数据库中的 TIME 类型 $table->tinyInteger('numbers'); 等同于数据库中的 TINYINT 类型 $table->timestamp('added_on');0 码力 | 377 页 | 4.56 MB | 1 年前3
共 9 条
- 1













