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