From a1a62a743be905ad6c56ce997f2b778e55489c62 Mon Sep 17 00:00:00 2001 From: Morgan Lesko Date: Wed, 27 Mar 2019 15:32:36 -0400 Subject: [PATCH] Database Install Fixes --- ...reate_tables.php => 2019_03_15_create_openpolice_tables.php} | 2 +- src/Database/OpenPoliceSeeder.php | 2 +- src/OpenPoliceServiceProvider.php | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) rename src/Database/{2019_03_15_OP_create_tables.php => 2019_03_15_create_openpolice_tables.php} (99%) diff --git a/src/Database/2019_03_15_OP_create_tables.php b/src/Database/2019_03_15_create_openpolice_tables.php similarity index 99% rename from src/Database/2019_03_15_OP_create_tables.php rename to src/Database/2019_03_15_create_openpolice_tables.php index 51ea0ac..2819ad3 100644 --- a/src/Database/2019_03_15_OP_create_tables.php +++ b/src/Database/2019_03_15_create_openpolice_tables.php @@ -4,7 +4,7 @@ use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; -class OPCreateTables extends Migration +class CreateOpenPoliceTables extends Migration { /** * Run the migrations. diff --git a/src/Database/OpenPoliceSeeder.php b/src/Database/OpenPoliceSeeder.php index d794626..ff20399 100755 --- a/src/Database/OpenPoliceSeeder.php +++ b/src/Database/OpenPoliceSeeder.php @@ -4,7 +4,7 @@ use Illuminate\Database\Seeder; use Illuminate\Database\Eloquent\Model; -class OPSeeder extends Seeder +class OpenPoliceSeeder extends Seeder { /** * Run the database seeds. diff --git a/src/OpenPoliceServiceProvider.php b/src/OpenPoliceServiceProvider.php index 74608b7..92b07e0 100755 --- a/src/OpenPoliceServiceProvider.php +++ b/src/OpenPoliceServiceProvider.php @@ -21,6 +21,7 @@ class OpenPoliceServiceProvider extends ServiceProvider public function boot() { require __DIR__ . '/routes.php'; + $this->loadViewsFrom(__DIR__.'/Views', 'openpolice'); $this->publishes([ __DIR__.'/Views' => base_path('resources/views/vendor/openpolice'), __DIR__.'/Public' => base_path('public/openpolice'),