FIX order picture url
This commit is contained in:
parent
0581fee616
commit
142225abc8
@ -443,7 +443,7 @@ private function createSupplier(Request $request)
|
||||
|
||||
return false;
|
||||
});
|
||||
|
||||
//dd($suppliers);
|
||||
return view('modules.order.supplier')->with([
|
||||
'suppliers' => $suppliers,
|
||||
]);
|
||||
|
||||
@ -12,8 +12,8 @@ class TrustProxies extends Middleware
|
||||
*
|
||||
* @var array<int, string>|string|null
|
||||
*/
|
||||
protected $proxies;
|
||||
|
||||
//protected $proxies;
|
||||
protected $proxies = '*'; // Vagy a konkrét proxy IP címei
|
||||
/**
|
||||
* The headers that should be used to detect proxies.
|
||||
*
|
||||
|
||||
@ -20,6 +20,7 @@
|
||||
use App\Repositories\ProfitCenterRepositoryInterface;
|
||||
use App\Repositories\SupplierRepository;
|
||||
use App\Repositories\SupplierRepositoryInterface;
|
||||
use Illuminate\Support\Facades\URL;
|
||||
use Illuminate\Support\ServiceProvider;
|
||||
|
||||
class AppServiceProvider extends ServiceProvider
|
||||
@ -50,6 +51,8 @@ public function register(): void
|
||||
*/
|
||||
public function boot(): void
|
||||
{
|
||||
URL::forceScheme('https');
|
||||
|
||||
\Illuminate\Database\Schema\Blueprint::macro('userIdFields', function () {
|
||||
$this->unsignedInteger('created_by')->nullable();
|
||||
$this->unsignedInteger('updated_by')->nullable();
|
||||
|
||||
@ -14,7 +14,7 @@
|
||||
<a class="supplierItem" href="#" data-id="{{$supplier['id']}}">
|
||||
<div class="card">
|
||||
@isset($supplier['logoFile'])
|
||||
<img class="card-img-top" src="{{$supplier['logoFile']}}" alt="Card image cap">
|
||||
<img class="card-img-top" src="{{url($supplier['logoFile'])}}" alt="Card image cap">
|
||||
@endisset
|
||||
<div class="card-body">
|
||||
<h5 class="card-title">{{$supplier['name']}}</h5>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user