Laravel 3.2 Documentationdesigned for their application. This may be most beneficial to large projects such as content-management-systems. This kind of architectural flexibility is unique to Laravel. Throughout the documentation structure to Blade template engine. Added Blade comments. Added simpler environment management. Added Blade::extend() method to define custom blade compilers. Added View::exists lang loaders. Added more logic to application/start.php for more flexibility. Added foreign key support to schema builder. Postgres "unique" indexes are now added with ADD CONSTRAINT. Added0 码力 | 139 页 | 1.13 MB | 1 年前3
Learning LaravelIntroduction 70 Sub-topic Navigation 71 Persisting 71 Deleting 72 Soft Deleting 73 Change primary key and timestamps 74 Throw 404 if entity not found 75 Cloning Models 75 Chapter 22: Eloquent : Relationship records event:generate Generate the missing events and listeners based on registration key:generate Set the application key https://riptutorial.com/ 6 Command Description make:auth Scaffold basic login and will be thrown.) Echoing a variable {{ $variable }} Echoing an element in an array {{ $array["key"] }} https://riptutorial.com/ 20 Echoing an object property {{ $object->property }} Echoing the0 码力 | 216 页 | 1.58 MB | 1 年前3
Laravel 5.0 Documentation
including Linode, DigitalOcean, Rackspace, and Amazon EC2. Supporting automated Nginx configuration, SSH key access, Cron job automation, server monitoring via NewRelic & Papertrail, "Push To Deploy", Laravel the old .env.php file. Set any appropriate values there, like your APP_ENV and APP_KEY (your encryption key), your database credentials, and your cache and session drivers. Additionally, copy any Configuration Migrating Environment Variables Configuration Files configuration files using env('key', 'default value') . You will see examples of this in the config/database.php configuration file0 码力 | 242 页 | 1.44 MB | 1 年前3
Laravel 5.3 中文文档升级指南中的废弃功能都已从框架中移除,你需要查看这个列表以确定不 再使用这些废弃功能。 数组 key/value 顺序更改 Arr 类上的 first、last、以及 contains 方法现在将“value”作为第一个参数传递给给定闭包,例 如: Arr::first(function ($value, $key) { 本文档由 Laravel 学院(LaravelAcademy.org)提供 Laravel 学院致力于提供优质 Laravel 中文学习资源 14 return ! is_null($value); }); 在 Laravel 之前版本中,$key 是第一个参数,但是由于大多数使用案例只对$value 感兴趣,所以 我们将其放到第一个。你可以在应用中进行一次全局搜索以验证是否你在应用中通过旧的方式使 用了这个函数。 Artisan 集合 key/value 顺序调整 集合方法 first, last 和 contains 都将“value”作为第一个参数传递给相应的回调闭包,例如: $collection->first(function ($value, $key) { return ! is_null($value); }); 在 Laravel 之前的版本中,$key 是第一个参数,由于大部分使用案例只对$value0 码力 | 691 页 | 9.37 MB | 1 年前3
Laravel 6.0 中文文档中文学习资源:https://xueyuanjun.com 5 * * @return void */ public function handle() { Redis::throttle('key')->block(0)->allow(1)->every (5)->then(function () { info('Lock obtained...'); // 处理任务... }, function @param callable $next * @return mixed */ public function handle($job, $next) { Redis::throttle('key') ->block(0)->allow(1)->every(5) ->then(function () use ($job, $next) { // Lock obtained... $next($job); 6.0 对整型键类型进行了性能优化,如果你使用了字符串作 为模型的主键,需要使用模型类的 $keyType 属性声明主键类型: /** * The "type" of the primary key ID. * 本文档由学院君提供 学院君致力于提供优质 Laravel 中文学习资源:https://xueyuanjun.com 18 * @var string */ protected0 码力 | 1442 页 | 14.66 MB | 1 年前3
Laravel 5.6 中文文档虚拟机做为开发环境,这些权限已经设置好了。 应用 key 接下来要做的事情就是将应用的 key(APP_KEY)设置为一个随机字符串,如果你是通过 Composer 或者 Laravel 安装器安装的话,该 key 的值已 经通过 php artisan key:generate 命令生成好了。 通常,该字符串应该是 32 位长,通过 .env 文件中的 APP_KEY 进行配置,如果你还没有将 .env.example example 文件重命名为 .env,现在立即这样做。 如果应用 key 没有被设置,用户 Session 和其它加密数据将会有安全隐患! 更多配置 Laravel 几乎不再需要其它任何配置就可以正常使用了,不过,你最好再看看 config/app.php 文件,其中包含了一些基于应用可能需要进行改变的 配置,比如 timezone 和 locale(分别用于配置时区和本地化)。 你可能还想要配置 ~/Downloads/virtualbox.box 运行上述命令有可能报错: Check your Homestead.yaml file, the path to your private key does not exist. 解决办法如下: ssh-keygen -t rsa -b 4096 -C "your_email@example.com" eval "$(ssh-agent0 码力 | 377 页 | 14.56 MB | 1 年前3
Laravel 5.1 中文文档虚拟机,这些权限已经被设置好了。 2.1.2 应用 Key 接下来要做的事情就是将应用 key 设置为一个随机字符串,如果你是通过 Composer 或者 Laravel 安装器安装的话,该 key 的值已经通过 key:generate 命令生成好了。通常,该字符 串应该是 32 位长,该 key 被配置在.env 环境文件中(APP_KEY),如果你还没有 将.env.example 文件重命名为 文件重命名为.env,现在立即这样做。如果应用 key 没有被设置,用户 sessions 和其它加密数据将会有安全隐患! 2.1.3 更多配置 Laravel 几乎不再需要其它任何配置就可以使用了,你可以自由地开始开发了!但是,你最 好再看看 config/app.php 文件和它的文档,其中包含了一些基于你的应用可能需要进行改 变的配置,比如 timezone 和 locale。 你可能还想要配置 vmware_workstation,你可以将其设置为自己喜欢的提供者: provider: virtualbox 2.2.2 设置 SSH key 在 Homestead.yaml 文件中还要配置公共 SSH key 的路径,如果没有 SSH key,那么在 Mac 或 Linux 上,可以通过如下命令来生成: ssh-keygen -t rsa -C "you@homestead"0 码力 | 307 页 | 3.46 MB | 1 年前3
Laravel 5.2 中文文档虚拟机做为开发环境,这些权限已经设置好了。 应用 Key 接下来要做的事情就是将应用的 key(APP_KEY)设置为一个随机字符串,如果你是通过 Composer 或者 Laravel 安装器安装的话,该 key 的值已经通过 key:generate 命令生成 好了。通常,该字符串应该是 32 位长,通过 .env 文件中的 APP_KEY 进行配置,如果 你还没有将 .env.example example 文件重命名为 .env,现在立即这样做。如果应用 key 没有被设 置,用户 Session 和其它加密数据将会有安全隐患。 如果你想要手动生成该 key 的值,使用如下 Artisan 命令即可: php artisan key:generate 更多配置 Laravel 几乎不再需要其它任何配置就可以正常使用了,但是,你最好再看 看 config/app.php 文件,其 中文学习资源 28 如果你想要隐式模型绑定使用数据表的其它字段,可以重写 Eloquent 模型类 的 getRouteKeyName 方法: /** * Get the route key for the model. * * @return string */ public function getRouteKeyName() { return0 码力 | 377 页 | 4.56 MB | 1 年前3
《Slides Dev Web》 11. HTTPS
avec la CS • En images2, ou ici3 ou en slides4 • 2-5 en TCP 1https://en.wikipedia.org/wiki/Public_key_infrastructure 2https://tiptopsecurity.com/how-does-https-work-rsa-encryption-explained/ 3http://s 20847#20847 12https://security.stackexchange.com/questions/55454/how-long-does-an-https-symmetric-key-last 13https://www.win.tue.nl/hashclash/rogue-ca/ 5 – Let’s Encrypt14 – CA Cert15 – SSLforFree160 码力 | 6 页 | 109.17 KB | 1 年前3
《Slides Dev Web》02. Introduction aux frameworks PHP
Classes – Base de données – Fichiers et dossiers • ROUTES : http://app.host.tld/controller/action[/key/val] • Arborescence : – Imposée ou libre selon frameworks – Pas de code (minimum) sous la racine web le référencement • Cohérence avec l’implémentation MVC : http://app.host.tld/controller/action[/key/val] • Le routage (routing) – Le Front Controller recoit toutes les requêtes (URL rewriting) – Il0 码力 | 24 页 | 1.03 MB | 1 年前3
共 11 条
- 1
- 2













