mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-11 06:46:47 +00:00
schedule
This commit is contained in:
@@ -7,6 +7,7 @@ use App\Models\Country;
|
||||
use Livewire\Component;
|
||||
use Livewire\WithFileUploads;
|
||||
use RalphJSmit\Laravel\SEO\Support\SEOData;
|
||||
use Spatie\MediaLibrary\MediaCollections\Models\Media;
|
||||
|
||||
class CommentBookCase extends Component
|
||||
{
|
||||
@@ -45,6 +46,14 @@ class CommentBookCase extends Component
|
||||
return to_route('bookCases.comment.bookcase', ['bookCase' => $this->bookCase->id]);
|
||||
}
|
||||
|
||||
public function deletePhoto($id)
|
||||
{
|
||||
Media::find($id)
|
||||
->delete();
|
||||
|
||||
return to_route('bookCases.comment.bookcase', ['bookCase' => $this->bookCase->id]);
|
||||
}
|
||||
|
||||
protected function url_to_absolute($url)
|
||||
{
|
||||
if (str($url)->contains('http')) {
|
||||
|
||||
Reference in New Issue
Block a user