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('migrate', ['--force' => true]);
|
||||
|
||||
Artisan::call('db:seed');
|
||||
Artisan::call('db:seed', ['--force' => true]);
|
||||
|
||||
$className = sprintf('DataMigrationV%s', str_replace(['.', '-'], '_', $appVersionNumber));
|
||||
if (class_exists($className))
|
||||
|
@ -9,14 +9,14 @@ class AlbumObserver
|
||||
public function creating(Album $album)
|
||||
{
|
||||
// Re-generate the alias and path
|
||||
$album->generateAlias();
|
||||
$album->generateUrlPath();
|
||||
}
|
||||
if (is_null($album->url_alias))
|
||||
{
|
||||
$album->generateAlias();
|
||||
}
|
||||
|
||||
public function updating(Album $album)
|
||||
{
|
||||
// Re-generate the alias and path
|
||||
$album->generateAlias();
|
||||
$album->generateUrlPath();
|
||||
if (is_null($album->url_path))
|
||||
{
|
||||
$album->generateUrlPath();
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user