Noor
Noor
FFilament
Created by Noor on 6/11/2024 in #❓┊help
multiple() is not working in form select
worked Thankyou 🙂
17 replies
FFilament
Created by Noor on 6/11/2024 in #❓┊help
multiple() is not working in form select
public $start;
public $end;
public $salesperson = 0;
public $options;
public ?array $data = [];

public function mount(): void
{
$this->form->fill([
// $this->start = now()->subDays(7)->format('Y-m-d h:i:s'),
// $this->end = now()->format('Y-m-d h:i:s'),
// $this->salesperson = 0,
'start' => now()->subDays(7)->format('Y-m-d h:i:s'),
'end' => now()->format('Y-m-d h:i:s'),
'salesperson' => 0,
]);
$options = [];
$options[0] = 'All';
$salespeople = User::orderBy('created_at', 'desc')->get();
foreach($salespeople as $salesperson) {
$options[$salesperson->id] = $salesperson->name;
}
$this->options = $options;
}

public function getFormSchema(): array
{
return [
Grid::make(3)->schema([
DatePicker::make('start'),
DatePicker::make('end'),
Select::make('salesperson')
->multiple()
->searchable()
->options($this->options)
->disablePlaceholderSelection()
->live()
])
->statePath('data'),

];
}
public $start;
public $end;
public $salesperson = 0;
public $options;
public ?array $data = [];

public function mount(): void
{
$this->form->fill([
// $this->start = now()->subDays(7)->format('Y-m-d h:i:s'),
// $this->end = now()->format('Y-m-d h:i:s'),
// $this->salesperson = 0,
'start' => now()->subDays(7)->format('Y-m-d h:i:s'),
'end' => now()->format('Y-m-d h:i:s'),
'salesperson' => 0,
]);
$options = [];
$options[0] = 'All';
$salespeople = User::orderBy('created_at', 'desc')->get();
foreach($salespeople as $salesperson) {
$options[$salesperson->id] = $salesperson->name;
}
$this->options = $options;
}

public function getFormSchema(): array
{
return [
Grid::make(3)->schema([
DatePicker::make('start'),
DatePicker::make('end'),
Select::make('salesperson')
->multiple()
->searchable()
->options($this->options)
->disablePlaceholderSelection()
->live()
])
->statePath('data'),

];
}
17 replies
FFilament
Created by Noor on 6/11/2024 in #❓┊help
multiple() is not working in form select
nope I'm trying - this time it did not showed any console error
17 replies
FFilament
Created by Noor on 6/11/2024 in #❓┊help
multiple() is not working in form select
@Leandro Ferreira using this in my code
17 replies
FFilament
Created by Noor on 6/11/2024 in #❓┊help
multiple() is not working in form select
public $start;
public $end;
public $salesperson = 0;
public $options;

public function mount(): void
{
$this->start = now()->subDays(7)->format('Y-m-d h:i:s');
$this->end = now()->format('Y-m-d h:i:s');
$this->salesperson = 0;
$options = [];
$options[0] = 'All';
$salespeople = User::orderBy('created_at', 'desc')->get();
foreach($salespeople as $salesperson) {
$options[$salesperson->id] = $salesperson->name;
}
$this->options = $options;
}

public function getFormSchema(): array
{
return [
Grid::make(3)->schema([
DatePicker::make('start'),
DatePicker::make('end'),
Select::make('salesperson')
->multiple()
->searchable()
->options($this->options)
->disablePlaceholderSelection()
->live(),
])
public $start;
public $end;
public $salesperson = 0;
public $options;

public function mount(): void
{
$this->start = now()->subDays(7)->format('Y-m-d h:i:s');
$this->end = now()->format('Y-m-d h:i:s');
$this->salesperson = 0;
$options = [];
$options[0] = 'All';
$salespeople = User::orderBy('created_at', 'desc')->get();
foreach($salespeople as $salesperson) {
$options[$salesperson->id] = $salesperson->name;
}
$this->options = $options;
}

public function getFormSchema(): array
{
return [
Grid::make(3)->schema([
DatePicker::make('start'),
DatePicker::make('end'),
Select::make('salesperson')
->multiple()
->searchable()
->options($this->options)
->disablePlaceholderSelection()
->live(),
])
17 replies
FFilament
Created by Noor on 6/11/2024 in #❓┊help
multiple() is not working in form select
yeah custom page , no did not added form->fill()
17 replies
FFilament
Created by Noor on 6/11/2024 in #❓┊help
multiple() is not working in form select
No description
17 replies
FFilament
Created by Noor on 6/4/2024 in #❓┊help
ImageColumn is not showing image
It was some permission issue on server its solved now .. thanks for the help though 🙏🏻
37 replies
FFilament
Created by Noor on 6/4/2024 in #❓┊help
ImageColumn is not showing image
idk I have to see
37 replies
FFilament
Created by Noor on 6/4/2024 in #❓┊help
ImageColumn is not showing image
hmmm
37 replies
FFilament
Created by Noor on 6/4/2024 in #❓┊help
ImageColumn is not showing image
yeah it created that
37 replies
FFilament
Created by Noor on 6/4/2024 in #❓┊help
ImageColumn is not showing image
/var/www/html/storage/app/public/product-image
37 replies
FFilament
Created by Noor on 6/4/2024 in #❓┊help
ImageColumn is not showing image
getting this console error now
37 replies
FFilament
Created by Noor on 6/4/2024 in #❓┊help
ImageColumn is not showing image
No description
37 replies
FFilament
Created by Noor on 6/4/2024 in #❓┊help
ImageColumn is not showing image
are they same as showing same pictures
37 replies
FFilament
Created by Noor on 6/4/2024 in #❓┊help
ImageColumn is not showing image
it shows me these two paths
37 replies
FFilament
Created by Noor on 6/4/2024 in #❓┊help
ImageColumn is not showing image
/var/www/html/public/storage
/var/www/html/public/storage
/var/www/html/storage/app/product-image
/var/www/html/storage/app/product-image
37 replies
FFilament
Created by Noor on 6/4/2024 in #❓┊help
ImageColumn is not showing image
ok
37 replies
FFilament
Created by Noor on 6/4/2024 in #❓┊help
ImageColumn is not showing image
What I need to do for private
37 replies
FFilament
Created by Noor on 6/4/2024 in #❓┊help
ImageColumn is not showing image
And if needs to be private then ?
37 replies