Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
bastihilger committed Jul 15, 2021
1 parent 137444c commit 94e6a5a
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public function up()
$prefix = config('nova-cms-portfolio.db_prefix');

Schema::table($prefix.'slideshows', function (Blueprint $table) {
$table->string('title_position')->default('bottom_left');
$table->string('title_position')->default('bottom_left')->nullable();
});
}

Expand Down
7 changes: 0 additions & 7 deletions src/Models/Slideshow.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,11 +117,4 @@ public function workForNews()

return $markedWork;
}

public function workForDisciplineUrl($disciplineId)
{
$work = $this->workForDiscipline($disciplineId);

return $work && $work->file ? nova_cms_image($work->file) : null;
}
}
2 changes: 0 additions & 2 deletions src/Nova/Slideshow.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,6 @@ public function fields(Request $request)

Slug::make(__('nova-cms::pages.slug'), 'slug')->from('title')
->rules('required')
->creationRules('unique:'.config('nova-cms-portfolio.db_prefix').'slideshows,slug')
->updateRules('unique:'.config('nova-cms-portfolio.db_prefix').'slideshows,slug,{{resourceId}}')
->onlyOnForms(),

Boolean::make(ucfirst(__('nova-cms-portfolio::portfolio.published')), 'is_published')
Expand Down

0 comments on commit 94e6a5a

Please sign in to comment.