Skip to content

Commit 91f3277

Browse files
b-robertsroshangautam
authored andcommitted
[feature] allows publishing views
- adds the ability to publish default views and override them in a Laravel project
1 parent b34b0d9 commit 91f3277

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

src/Providers/TotemServiceProvider.php

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,16 @@
22

33
namespace Studio\Totem\Providers;
44

5-
use Studio\Totem\Totem;
65
use Cron\CronExpression;
76
use Illuminate\Http\UploadedFile;
8-
use Illuminate\Support\Facades\Log;
97
use Illuminate\Support\Facades\Schema;
10-
use Illuminate\Support\ServiceProvider;
118
use Illuminate\Support\Facades\Validator;
12-
use Studio\Totem\Contracts\TaskInterface;
9+
use Illuminate\Support\ServiceProvider;
1310
use Studio\Totem\Console\Commands\ListSchedule;
1411
use Studio\Totem\Console\Commands\PublishAssets;
12+
use Studio\Totem\Contracts\TaskInterface;
1513
use Studio\Totem\Repositories\EloquentTaskRepository;
14+
use Studio\Totem\Totem;
1615

1716
class TotemServiceProvider extends ServiceProvider
1817
{
@@ -110,6 +109,10 @@ public function defineAssetPublishing()
110109
TOTEM_PATH.'/public/img' => public_path('vendor/totem/img'),
111110
], 'totem-assets');
112111

112+
$this->publishes([
113+
TOTEM_PATH.'/resources/views' => resource_path('views/vendor/totem'),
114+
], 'totem-views');
115+
113116
$this->publishes([
114117
TOTEM_PATH.'/config' => config_path(),
115118
], 'totem-config');

0 commit comments

Comments
 (0)