You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

SquireServiceProvider.php 639B

123456789101112131415161718192021222324252627
  1. <?php
  2. namespace App\Providers;
  3. use App\Models\Contact;
  4. use Squire\Repository;
  5. use Illuminate\Support\ServiceProvider;
  6. class SquireServiceProvider extends ServiceProvider
  7. {
  8. /**
  9. * Register any application services.
  10. */
  11. public function register(): void
  12. {
  13. //
  14. }
  15. /**
  16. * Bootstrap any application services.
  17. */
  18. public function boot(): void
  19. {
  20. Repository::registerSource(Contact::class, 'en', base_path('vendor/squirephp/regions-en/resources/data.csv'));
  21. Repository::registerSource(Contact::class, 'en', base_path('vendor/squirephp/countries-en/resources/data.csv'));
  22. }
  23. }