Jack
Jack
FFilament
Created by Jack on 4/30/2024 in #❓┊help
Exports
Hi all, Is it possible to create an exporter that gets all the names in my model column 'short_code', groups them, and then shows how many entries in the model the 'short_code' occurs in a totals column? Thanks.
17 replies
FFilament
Created by Jack on 4/21/2024 in #❓┊help
Format datetime picker
No description
6 replies
FFilament
Created by Jack on 4/7/2024 in #❓┊help
Touch
Hi all, When updating a relationship on my User resource, how can I touch the users model so it updates the updated_at?
5 replies
FFilament
Created by Jack on 3/22/2024 in #❓┊help
Persist search value in select?
No description
2 replies
FFilament
Created by Jack on 3/19/2024 in #❓┊help
Am i misunderstanding relation managers?
Hi all, I keep getting the below error
Call to undefined method App\Models\Product::categories()
Call to undefined method App\Models\Product::categories()
When trying to attach a product to my category through my CategoryResource relation manager. Can anyone give me advise I can't see where i'm going wrong - sorry for the inconvenience.
<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class Product extends Model
{
use HasFactory;

protected $fillable = [
'sku',
'description',
'category_id',
'created_at',
'updated_at'
];

public function category()
{
return $this->belongsTo(Category::class);
}

}
<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class Product extends Model
{
use HasFactory;

protected $fillable = [
'sku',
'description',
'category_id',
'created_at',
'updated_at'
];

public function category()
{
return $this->belongsTo(Category::class);
}

}
<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class Category extends Model
{
use HasFactory;

protected $fillable = [
'name',
'created_at',
'updated_at'
];

public function products()
{
return $this->hasMany(Product::class);
}
}
<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class Category extends Model
{
use HasFactory;

protected $fillable = [
'name',
'created_at',
'updated_at'
];

public function products()
{
return $this->hasMany(Product::class);
}
}
5 replies
FFilament
Created by Jack on 3/8/2024 in #❓┊help
Global search
is it possible to add custom pages to the results of global search?
3 replies
FFilament
Created by Jack on 2/26/2024 in #❓┊help
chart() tooltip
No description
1 replies
FFilament
Created by Jack on 2/25/2024 in #❓┊help
Disable weekends in native(false) date picker?
Hi, has anyone got a good method to disable weekends for the native(false) date picker, i've used carbon and attempted if weekday [0,6] then disable, but the date picker just chugs and takes ages to open? also makes the page unresponsive for some time when opening the picker
2 replies
FFilament
Created by Jack on 2/20/2024 in #❓┊help
Too many calls to location or history APIs in a short period of time
anyone had "Too many calls to location or history APIs in a short period of time." issue with livewire navigate? only seems to be in Firefox
2 replies
FFilament
Created by Jack on 2/18/2024 in #❓┊help
Edit user
Any time I attempt to edit the user resource I receive the below error; SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'password' cannot be null '' public static function form(Form $form): Form { return $form ->schema([ TextInput::make('name')->required(), TextInput::make('email')->email(), TextInput::make('password')->password(), ]); } public static function table(Table $table): Table { return $table ->columns([ TextColumn::make('id')->sortable()->searchable(), TextColumn::make('name')->sortable()->searchable(), TextColumn::make('email')->sortable()->searchable(), TextColumn::make('status')->sortable()->searchable() ]) ->filters([ // ]) ->actions([ Tables\Actions\EditAction::make(), ]) ->bulkActions([ Tables\Actions\BulkActionGroup::make([ Tables\Actions\DeleteBulkAction::make(), ]), ]); }'' Any ideas?
1 replies
FFilament
Created by Jack on 2/17/2024 in #❓┊help
User and Admin panels?
Hi all, First time using Filament so apologies if I’ve missed something obvious, I’d like two different panels one for regular users then another for admins but I’d like to use one login page. Is it possible? If so can you point me in the right direction Thanks
6 replies