omegar0643
omegar0643
FFilament
Created by omegar0643 on 8/20/2023 in #❓┊help
Call to a member function getAttributeValue() on null Using Spatie Media & Translatable Plugins
when added Media & Translatable Plugins in the Resource i get error when try to upload and save the image
Call to a member function getAttributeValue() on null
Call to a member function getAttributeValue() on null
21 replies
FFilament
Created by omegar0643 on 8/15/2023 in #❓┊help
relationship using Spatie Translatable
5 replies
FFilament
Created by omegar0643 on 8/13/2023 in #❓┊help
relationship with spatie translatable
2 replies
FFilament
Created by omegar0643 on 8/10/2023 in #❓┊help
bug when using slug in route
i have Product Model with this function
public function getRouteKeyName()
{
return 'slug';
}
public function getRouteKeyName()
{
return 'slug';
}
and when try edit page i got 404 error
2 replies
FFilament
Created by omegar0643 on 8/7/2023 in #❓┊help
Livewire 3 Help
Error: Property type not supported in Livewire for property: [{"current_page":1,"data":[{"id":1,"name":"Alf.....
<?php

namespace App\Livewire;

use App\Models\Product;
use Livewire\Component;
use Livewire\WithPagination;

class ProductList extends Component
{
use WithPagination;
public $products;

public function mount()
{
$this->products = Product::paginate(5);
}

public function render()
{
return view('livewire.product-list');
}
}
<?php

namespace App\Livewire;

use App\Models\Product;
use Livewire\Component;
use Livewire\WithPagination;

class ProductList extends Component
{
use WithPagination;
public $products;

public function mount()
{
$this->products = Product::paginate(5);
}

public function render()
{
return view('livewire.product-list');
}
}
product-list.blade.php
<div>
@foreach ($products as $product)
<div>
{{ $product->name }}
</div>
@endforeach
{{ $products->links() }}
</div>
<div>
@foreach ($products as $product)
<div>
{{ $product->name }}
</div>
@endforeach
{{ $products->links() }}
</div>
2 replies
FFilament
Created by omegar0643 on 8/1/2023 in #❓┊help
Slug field not updated when update title field
8 replies