Some adjustments to show customer's logo.
This commit is contained in:
17
app/View/Composers/OptionLogo.php
Normal file
17
app/View/Composers/OptionLogo.php
Normal file
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
namespace App\View\Composers;
|
||||
|
||||
use App\Models\Option;
|
||||
use Illuminate\View\View;
|
||||
|
||||
class OptionLogo
|
||||
{
|
||||
public function compose(View $view): void
|
||||
{
|
||||
$company_logo = Option::where('name', '=', 'company_logo')->first();
|
||||
|
||||
$view->with(['company_logo' => $company_logo]);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user