Fixed a couple of issues following update of photos.andyheathershaw.uk
This commit is contained in:
parent
a645a126b3
commit
02ab6d77df
@ -97,8 +97,7 @@ class AppInstallation
|
|||||||
|
|
||||||
Artisan::call('cache:clear');
|
Artisan::call('cache:clear');
|
||||||
Artisan::call('migrate', ['--force' => true]);
|
Artisan::call('migrate', ['--force' => true]);
|
||||||
|
Artisan::call('db:seed', ['--force' => true]);
|
||||||
Artisan::call('db:seed');
|
|
||||||
|
|
||||||
$className = sprintf('DataMigrationV%s', str_replace(['.', '-'], '_', $appVersionNumber));
|
$className = sprintf('DataMigrationV%s', str_replace(['.', '-'], '_', $appVersionNumber));
|
||||||
if (class_exists($className))
|
if (class_exists($className))
|
||||||
|
@ -9,14 +9,14 @@ class AlbumObserver
|
|||||||
public function creating(Album $album)
|
public function creating(Album $album)
|
||||||
{
|
{
|
||||||
// Re-generate the alias and path
|
// Re-generate the alias and path
|
||||||
$album->generateAlias();
|
if (is_null($album->url_alias))
|
||||||
$album->generateUrlPath();
|
{
|
||||||
}
|
$album->generateAlias();
|
||||||
|
}
|
||||||
|
|
||||||
public function updating(Album $album)
|
if (is_null($album->url_path))
|
||||||
{
|
{
|
||||||
// Re-generate the alias and path
|
$album->generateUrlPath();
|
||||||
$album->generateAlias();
|
}
|
||||||
$album->generateUrlPath();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user