-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#295 - photoreel & updates #335
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- When I run
php artisan migrate
I see error
After running php artisan migrate:fresh
it works
- After running
php artisan migrate:fresh --seed
images in reference section don't display
When I add a reference in admin panel without photo (to see placeholder image) it works
- Admin panel -> references -> create -> when I don't choose sex and click "Utwórz" I see error in console and reference is not created
- When I go to "O firmie" page I see error in console
- "O firmie" page - text under title "Nasze wartości" is smaller that text under title "Nasza misja". We want like that?
1.That happened bc you had old database records that didn't contain 'sex' column. Since this last |
@php | ||
$photoPath = (file_exists(storage_path('app/public/' . $reference->photo)) && !!$reference->photo) | ||
? asset('storage/' . $reference->photo) | ||
: null; | ||
$placeholder = $reference->sex === 'female' | ||
? asset('graphics/placeholders/female.svg') | ||
: asset('graphics/placeholders/male.svg'); | ||
@endphp |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@php | |
$photoPath = (file_exists(storage_path('app/public/' . $reference->photo)) && !!$reference->photo) | |
? asset('storage/' . $reference->photo) | |
: null; | |
$placeholder = $reference->sex === 'female' | |
? asset('graphics/placeholders/female.svg') | |
: asset('graphics/placeholders/male.svg'); | |
@endphp | |
@php | |
$photoPath = (file_exists(storage_path('app/public/' . $reference->photo)) && !!$reference->photo) | |
? asset('storage/' . $reference->photo) | |
: null; | |
$placeholder = $reference->sex === 'female' | |
? asset('graphics/placeholders/female.svg') | |
: asset('graphics/placeholders/male.svg'); | |
@endphp |
Let's do that on backend
$main2PhotoPath = (file_exists(storage_path('app/public/' . $references[$main2]->photo)) && !!$references[$main2]->photo) | ||
? asset('storage/' . $references[$main2]->photo) | ||
: null; | ||
$main2Placeholder = $references[$main2]->sex === 'female' | ||
? asset('graphics/placeholders/female.svg') | ||
: asset('graphics/placeholders/male.svg'); | ||
@endphp |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed:
-icons: replacet a few icons from .svg to html way of usage - left only those that we change accent color + from main page case study
It should close #295.