Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
19 | public function boot() |
||
20 | { |
||
21 | // 5.4 and above will use this method to bind |
||
22 | if (method_exists(Connection::class, 'resolverFor')) { |
||
23 | /* @noinspection PhpUndefinedMethodInspection */ |
||
24 | Connection::resolverFor('mysql', function ($connection, $database, $prefix, $config) { |
||
25 | return new MySqlConnection($connection, $database, $prefix, $config); |
||
26 | }); |
||
27 | } |
||
28 | } |
||
29 | |||
43 |