Completed
Push — master ( 9538e5...1e74d1 )
by Jeroen
02:45
created

FollowServiceProvider::boot()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 8
rs 9.4285
cc 1
eloc 5
nc 1
nop 0
1
<?php
2
namespace Jeroenherczeg\Dog;
3
4
use Illuminate\Support\ServiceProvider;
5
6
class FollowServiceProvider extends ServiceProvider
7
{
8
    /**
9
     * Bootstrap the application services.
10
     *
11
     * @return void
12
     */
13
    public function boot()
14
    {
15
        $timestamp = date('Y_m_d_His', time());
16
        
17
        $this->publishes([
18
            __DIR__ . '/create_followers_table.php' => database_path('migrations/' . $timestamp . '_create_followers_table.php')
19
        ], 'migrations');
20
    }
21
22
    /**
23
     * Register the application services.
24
     *
25
     * @return void
26
     */
27
    public function register()
28
    {
29
        //
30
    }
31
}
32