Update finishing.blade.php
This commit is contained in:
parent
ddb8f5bc94
commit
c19c953e3d
|
@ -153,7 +153,7 @@ use App\Models\Page;
|
||||||
|
|
||||||
|
|
||||||
// Moves all previous images to the new path
|
// Moves all previous images to the new path
|
||||||
if (File::isDirectory(base_path('assets/img'))) {
|
if (is_dir(base_path('assets/img'))) {
|
||||||
$files = File::files(base_path('img'));
|
$files = File::files(base_path('img'));
|
||||||
foreach ($files as $file) {
|
foreach ($files as $file) {
|
||||||
$filename = $file->getFilename();
|
$filename = $file->getFilename();
|
||||||
|
@ -161,7 +161,7 @@ if (File::isDirectory(base_path('assets/img'))) {
|
||||||
if (!File::exists($destination)) {
|
if (!File::exists($destination)) {
|
||||||
if (!$file->isDir()) {
|
if (!$file->isDir()) {
|
||||||
File::move($file, $destination);}}}}
|
File::move($file, $destination);}}}}
|
||||||
if (File::isDirectory(base_path('assets/img/background-img'))) {
|
if (is_dir(base_path('assets/img/background-img'))) {
|
||||||
$files = File::files(base_path('img/background-img'));
|
$files = File::files(base_path('img/background-img'));
|
||||||
foreach ($files as $file) {
|
foreach ($files as $file) {
|
||||||
$filename = $file->getFilename();
|
$filename = $file->getFilename();
|
||||||
|
@ -169,7 +169,7 @@ if (File::isDirectory(base_path('assets/img/background-img'))) {
|
||||||
if (!File::exists($destination)) {
|
if (!File::exists($destination)) {
|
||||||
if (!$file->isDir()) {
|
if (!$file->isDir()) {
|
||||||
File::move($file, $destination);}}}}
|
File::move($file, $destination);}}}}
|
||||||
if (File::isDirectory(base_path('littlelink/images'))) {
|
if (is_dir(base_path('littlelink/images'))) {
|
||||||
$files = File::files(base_path('littlelink/images'));
|
$files = File::files(base_path('littlelink/images'));
|
||||||
foreach ($files as $file) {
|
foreach ($files as $file) {
|
||||||
$filename = $file->getFilename();
|
$filename = $file->getFilename();
|
||||||
|
@ -177,7 +177,7 @@ if (File::isDirectory(base_path('littlelink/images'))) {
|
||||||
if (!File::exists($destination)) {
|
if (!File::exists($destination)) {
|
||||||
if (!$file->isDir()) {
|
if (!$file->isDir()) {
|
||||||
File::move($file, $destination);}}}}
|
File::move($file, $destination);}}}}
|
||||||
if (File::isDirectory(base_path('littlelink/images'))) {
|
if (is_dir(base_path('littlelink/images'))) {
|
||||||
$files = File::files(base_path('littlelink/images'));
|
$files = File::files(base_path('littlelink/images'));
|
||||||
foreach ($files as $file) {
|
foreach ($files as $file) {
|
||||||
$filename = $file->getFilename();
|
$filename = $file->getFilename();
|
||||||
|
@ -185,7 +185,7 @@ if (File::isDirectory(base_path('littlelink/images'))) {
|
||||||
if (!File::exists($destination)) {
|
if (!File::exists($destination)) {
|
||||||
if (!$file->isDir()) {
|
if (!$file->isDir()) {
|
||||||
File::move($file, $destination);}}}}
|
File::move($file, $destination);}}}}
|
||||||
if (File::isDirectory(base_path('studio/favicon/icons'))) {
|
if (is_dir(base_path('studio/favicon/icons'))) {
|
||||||
$files = File::files(base_path('studio/favicon/icons'));
|
$files = File::files(base_path('studio/favicon/icons'));
|
||||||
foreach ($files as $file) {
|
foreach ($files as $file) {
|
||||||
$filename = $file->getFilename();
|
$filename = $file->getFilename();
|
||||||
|
@ -204,8 +204,8 @@ if (File::isDirectory(base_path('studio/favicon/icons'))) {
|
||||||
foreach ($users as $user) {
|
foreach ($users as $user) {
|
||||||
$oldName = $user->littlelink_name . '.png';
|
$oldName = $user->littlelink_name . '.png';
|
||||||
$newName = $user->id . '.png';
|
$newName = $user->id . '.png';
|
||||||
$oldPath = base_path('img/' . $oldName);
|
$oldPath = base_path('assets/img/' . $oldName);
|
||||||
$newPath = base_path('img/' . $newName);
|
$newPath = base_path('assets/img/' . $newName);
|
||||||
|
|
||||||
if (File::exists($oldPath)) {
|
if (File::exists($oldPath)) {
|
||||||
File::move($oldPath, $newPath);
|
File::move($oldPath, $newPath);
|
||||||
|
|
Loading…
Reference in New Issue