F
Filament14mo ago
core

New Trait on model blocking ProductResource Index Page

Strange behaviour: I added the :use BinaryCats\Sku\HasSku;, into my Product Model. http://example.test/admin/products I get connection timed out with no errors in the browser or logs. http://example.test/admin/products/create works with the trait and generates the sku field correctly
2 Replies
Lara Zeus
Lara Zeus14mo ago
what is in HasSku dose it do something on booting?
core
coreOP14mo ago
it's booting an Observer Class. I don't see an issue??
trait HasSku
{
/**
* Boot the trait by adding observers.
*
* @return void
*/
public static function bootHasSku()
{
static::observe(SkuObserver::class);
}
trait HasSku
{
/**
* Boot the trait by adding observers.
*
* @return void
*/
public static function bootHasSku()
{
static::observe(SkuObserver::class);
}
https://github.com/binary-cats/laravel-sku/blob/master/src/Concerns/SkuObserver.php
GitHub
laravel-sku/src/Concerns/SkuObserver.php at master · binary-cats/la...
Generate SKUs for Eloquent models. Contribute to binary-cats/laravel-sku development by creating an account on GitHub.
Want results from more Discord servers?
Add your server