laravel5.4 | 集合
1、简介 Illuminate\Support\Collection 类为处理数组数据提供流式、方便的封装。例如,查看下面的代码,我们使用辅助函数 collect 创建一个新的集合实例,为每一个元素运行 strtoupper 函数,然后移除...
1、简介 Illuminate\Support\Collection 类为处理数组数据提供流式、方便的封装。例如,查看下面的代码,我们使用辅助函数 collect 创建一个新的集合实例,为每一个元素运行 strtoupper 函数,然后移除...
常用命令 查看所有artisan命令 php artisan list 查看命令 php artisan help migrate 运行tinker php artisan tinker 编写命令 自定义命令通常存放在 app/Consol...
加密 使用 Laravel 的加密器之前,必须在配置文件 config/app.php中设置 key 选项为 32 位随机字符串。可以使用 php artisan key:generate 命令来生成这个key,该 Artisan 命令会使...
Blade 视图文件使用 .blade.php 文件扩展并存放在 resources/views 目录下。 模板继承 @section 定义了一个内容的片段 @section('sidebar') This is the master s...
Session 配置文件位于 config/session.php 默认file驱动 支持的类型驱动 file – Session 数据存储在 storage/framework/sessions 目录下; cookie – Session...
#laravel new blog Crafting application... [Symfony\Component\Process\Exception\RuntimeException] The Process class r...