user()?->role === 'user') { return []; } return parent::getBreadcrumbs(); } protected function getFormActions(): array { return [ $this->getCreateFormAction(), $this->getCancelFormAction(), ]; } protected function afterCreate(): void { $this->syncMetadataFromImage(); session()->flash('created_record', $this->record->only([ 'title', 'uploaded_by', 'captured_at', 'lat', 'lng', 'desc', 'story', 'image_path', ])); } }