| Total Complexity | 2 |
| Total Lines | 23 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 8 | class AppServiceProvider extends ServiceProvider |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * Bootstrap any application services. |
||
| 12 | * |
||
| 13 | * @return void |
||
| 14 | */ |
||
| 15 | public function boot() |
||
| 16 | { |
||
| 17 | Validator::extend( |
||
| 18 | 'phone_number', |
||
| 19 | new Rules\PhoneNumber, |
||
|
|
|||
| 20 | 'The :attribute format is invalid.' |
||
| 21 | ); |
||
| 22 | } |
||
| 23 | |||
| 24 | /** |
||
| 25 | * Register the service provider. |
||
| 26 | * |
||
| 27 | * @return void |
||
| 28 | */ |
||
| 29 | public function register() |
||
| 31 | // |
||
| 32 | } |
||
| 34 |