Skip to content

Commit

Permalink
Fix custom view loading
Browse files Browse the repository at this point in the history
  • Loading branch information
gbrock committed Apr 16, 2015
1 parent c51b9a8 commit 57ac297
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Providers/TableServiceProvider.php
Expand Up @@ -25,11 +25,11 @@ public function boot()
{
$root = __DIR__.'/../../';
// Load views
$this->loadViewsFrom($root . 'resources/views', 'gbrock.tables');
$this->loadViewsFrom($root . 'resources/views', 'gbrock');

// Publish views
$this->publishes([
$root . 'resources/views' => base_path('resources/views/vendor/gbrock/tables'),
$root . 'resources/views' => base_path('resources/views/vendor/gbrock'),
]);

// Publish configuration
Expand Down
2 changes: 1 addition & 1 deletion src/Table.php
Expand Up @@ -7,7 +7,7 @@ class Table {

protected $models;
protected $columns;
protected $view = 'gbrock.tables::table';
protected $view = 'gbrock::table';
protected $viewVars = [];

/**
Expand Down

0 comments on commit 57ac297

Please sign in to comment.