mirror of
https://git.meshkee.com/cssd/cssd-back.git
synced 2026-10-10 19:51:07 +03:30
fix export problems
This commit is contained in:
+7
-7
@@ -30,17 +30,17 @@ class TestResult extends Model implements HasMedia
|
||||
|
||||
public function registerMediaCollections()
|
||||
{
|
||||
$this->addMediaCollection( 'main_images' )
|
||||
->useFallbackUrl( '/images/default_pastry.jpg' )
|
||||
->useFallbackPath( public_path( '/images/default_pastry.jpg' ) );
|
||||
$this->addMediaCollection('files')
|
||||
->useFallbackUrl('/files/default_pastry.jpg')
|
||||
->useFallbackPath(public_path('/files/default_pastry.jpg'));
|
||||
}
|
||||
|
||||
public function registerMediaConversions( Media $media = null ): void
|
||||
{
|
||||
$this->addMediaConversion( 'thumbnail' )
|
||||
->width( 480 )
|
||||
->height( 640 )
|
||||
$this->addMediaConversion('thumbnail')
|
||||
->width(480)
|
||||
->height(640)
|
||||
->nonQueued()
|
||||
->performOnCollections( 'main_images' );
|
||||
->performOnCollections('files');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user