Learning Laravel
Examples 50 CustomException class in laravel 50 Chapter 16: Database 51 Examples 51 Multiple database connections 51 Chapter 17: Database Migrations 55 Examples 55 Migrations 55 The migration files files 56 Generating migration files 56 Inside a database migration 57 Running migrations 58 Rolling Back Migrations 58 Chapter 18: Database Seeding 60 Examples 60 Running a Seeder 60 Creating a Seed Queues 144 Introduction 144 Examples 144 Use-cases 144 Queue Driver Configuration 144 sync 144 database 144 sqs 144 iron 145 redis 145 beanstalkd 145 null 145 Chapter 49: Remove public from URL0 码力 | 216 页 | 1.58 MB | 1 年前3Laravel 5.0 Documentation
iii. Cache i. Configuration ii. Cache Usage iii. Increments & Decrements iv. Cache Tags v. Database Cache iv. Collections i. Introduction ii. Basic Usage v. Command Bus i. Introduction ii. Creating Queues vii. Failed Jobs xix. Session i. Configuration ii. Session Usage iii. Flash Data iv. Database Sessions v. Session Drivers xx. Templates i. Blade Templating ii. Other Blade Control Structures Error Messages ix. Custom Validation Rules 7. Database i. Basic Usage i. Configuration ii. Read / Write Connections iii. Running Queries iv. Database Transactions v. Accessing Connections vi. Query0 码力 | 242 页 | 1.44 MB | 1 年前3Laravel 3.2 Documentation
Tests ..................................................................................... 75 Database Configuration ................................................................................. ........................................................................... 104 Prepping Your Database ............................................................................................. 104 ......................................................................................... 108 Database ...............................................................................................0 码力 | 139 页 | 1.13 MB | 1 年前3The Laravel Handbook
Dynamic routes 5. Adding a database 6. How to use migrations to create and modify the database schema 7. Using forms to accept user input and store it into the database 8. Adding a better layout 9 11. Adding authentication using Laravel Breeze 12. Only authenticated users can add items to the database 13. Push the app code to GitHub 14. Deployment 15. Dynamic routes 16. Non-web routes 17. Creating file you can see we set the app name, the debug flag, the URL, settings related to logging, to the database connection, email sending and much more. One very useful folder is config . Here’s for example0 码力 | 111 页 | 14.25 MB | 1 年前3Laravel 5.2 中文文档
Illuminate\Database\Events\TransactionBeginning 本文档由 Laravel 学院(LaravelAcademy.org)提供 Laravel 学院致力于提供优质 Laravel 中文学习资源 7 Old New connection.{name}.committed Illuminate\Database\Events\TransactionCommitted sactionCommitted connection.{name}.rollingBack Illuminate\Database\Events\TransactionRolledBack illuminate.query Illuminate\Database\Events\QueryExecuted illuminate.queue.after Illuminate\Que 属性应该被更新为至少包含以下异常类型的其 中一个: use Illuminate\Auth\Access\AuthorizationException; use Illuminate\Database\Eloquent\ModelNotFoundException; use Symfony\Component\HttpKernel\Exception\HttpException; use0 码力 | 377 页 | 4.56 MB | 1 年前3Laravel 5.1 中文文档
bootstrap 目录包含了少许文件用于框架的启动和自动载入配置,还有一个 cache 文件夹用 于包含框架生成的启动文件以提高性能; config 目录包含了应用所有的配置文件; database 目录包含了数据迁移及填充文件,如果你喜欢的话还可以将其作为 SQLite 数据库 存放目录; public 目录包含了前端控制器和资源文件(图片、js、css 等); resources Factory Queue::driver() Illuminate\Contracts\Queue\Queue Queue Illuminate\Contracts\Redis\Database Redis Illuminate\Contracts\Routing\Registrar Route Illuminate\Contracts\Routing\ResponseFactory Illuminate\Contracts\Redis\Database; class CacheUserInformation{ /** * Redis 数据库实现 */ protected $redis; /** * 创建一个新的事件处理器实例 * * @param Database $redis 本文档由 Laravel0 码力 | 307 页 | 3.46 MB | 1 年前3Laravel 5.3 中文文档
到模型让模型变得可搜索: Database\Eloquent\Model; class Post extends Model { use Searchable; } trait 被添加到模型之后,当保 $morphClass = 'user' } 现在则需要在 AppServiceProvider 的 boot 方法中定义如下 morphMap: use Illuminate\Database\Eloquent\Relations\Relation; Relation::morphMap([ 'user' => User::class, ]); Eloquent 类,然后将类实 例添加到队列。 集合序列化 Illuminate\Queue\SerializesModels trait 现 在 适 当 实 例 化 了 Illuminate\Database\Eloquent\Collection。对绝大多数应用来说这不算重大更新,但是,如果 你的应用绝对依赖于不是通过队列任务从数据库重新获取的集合,那么就要验证这一改动对应用 没有负面影响。0 码力 | 691 页 | 9.37 MB | 1 年前3Laravel 5.6 中文文档
命令。message 的值用于显示或记录自定义消息,而 retry 的值用于设置 HTTP 请求头的 Retry- After: php artisan down --message="Upgrading Database" --retry=60 要关闭维护模式,开启站点,对应的 Artisan 命令是 up: php artisan up 注:你可以通过定义自己的模板来定制默认的维护模式模板,自定义模板视图位于 文件夹,里面包含了框架为提升性能所生成的文件,如路由和 服务缓存文件; Config 目录 config 目录包含了应用所有的配置文件,建议通读一遍这些配置文件以便熟悉 Laravel 所有默认配置项; Database 目录 database 目录包含了数据库迁移文件及填充文件,如果有使用 SQLite 的话,你还可以将其作为 SQLite 数据库存放目录; Public 目录 public 目录包含了应用入口文件 方法,尽管如此,为了发布博客,我们需要注入 Publisher 实例: Database\Eloquent\Model; class Podcast extends Model { /** * Publish the podcast. *0 码力 | 377 页 | 14.56 MB | 1 年前3Laravel 6.0 中文文档
影响级别:中等 注:此更新只会影响使用了 illuminate/database 依赖 包的非 Laravel 应用。 Illuminate\Database\Capsule\Manager 类的 table 方法签名被 更新为接收数据表别名作为第二个参数,如果你在 Laravel 应用之 外使用了 illuminate/database,需要更新相应的方法调用: /** * Get a fluent * * @param \Closure|\Illuminate\Database\Query\Builde r|string $table * @param string|null $as * @param string|null $connection * @return \Illuminate\Database\Query\Builder 本文档由学院君提供 学院君致力于提供优质 的值用 于显示或记录自定义消息,而 retry 的值用于设置 HTTP 请求头 的 Retry-After: php artisan down --message="Upgrading Database" --ret ry=60 即使在维护模式下,也可以通过 allow 选项指定 IP 地址或网络来访 问应用: php artisan down --allow=127.0.0.1 --allow=1920 码力 | 1442 页 | 14.66 MB | 1 年前3
共 9 条
- 1