Cem
Cem
FFilament
Created by Cem on 11/11/2024 in #❓┊help
Help with form outside Panel
but i'll dig that one too. Thank you very much for your help; i wouldn't find it !
13 replies
FFilament
Created by Cem on 11/11/2024 in #❓┊help
Help with form outside Panel
No description
13 replies
FFilament
Created by Cem on 11/11/2024 in #❓┊help
Help with form outside Panel
Donw to one error now but i guess has nothing to do with it
13 replies
FFilament
Created by Cem on 11/11/2024 in #❓┊help
Help with form outside Panel
No description
13 replies
FFilament
Created by Cem on 11/11/2024 in #❓┊help
Help with form outside Panel
@LeandroFerreira Genius ! That was it !
13 replies
FFilament
Created by Cem on 11/11/2024 in #❓┊help
Help with form outside Panel
should I be adding fields in the $data array or something ?
13 replies
FFilament
Created by Cem on 11/11/2024 in #❓┊help
Help with form outside Panel
@LeandroFerreira sorry forgot that one
13 replies
FFilament
Created by Cem on 11/11/2024 in #❓┊help
Help with form outside Panel
<?php

namespace App\Livewire;

use App\Filament\Resources\AnamneseResource;
use App\Models\Anamnese;
use Livewire\Component;
use Filament\Forms\Concerns\InteractsWithForms;
use Filament\Forms\Contracts\HasForms;
use Filament\Forms\Form;

class PublicAnamneseForm extends Component implements HasForms
{
use InteractsWithForms;

public ?array $data = [];

public function mount(): void
{
$this->form->fill();
}

public function form(Form $form): Form
{
return AnamneseResource::form($form);
}

public function create(): void
{
$data = $this->form->getState();
$anamnese = Anamnese::create($data);
$this->form->fill();
session()->flash('success', 'Form submitted successfully!');
}

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

namespace App\Livewire;

use App\Filament\Resources\AnamneseResource;
use App\Models\Anamnese;
use Livewire\Component;
use Filament\Forms\Concerns\InteractsWithForms;
use Filament\Forms\Contracts\HasForms;
use Filament\Forms\Form;

class PublicAnamneseForm extends Component implements HasForms
{
use InteractsWithForms;

public ?array $data = [];

public function mount(): void
{
$this->form->fill();
}

public function form(Form $form): Form
{
return AnamneseResource::form($form);
}

public function create(): void
{
$data = $this->form->getState();
$anamnese = Anamnese::create($data);
$this->form->fill();
session()->flash('success', 'Form submitted successfully!');
}

public function render()
{
return view('livewire.public-anamnese-form');
}
}
13 replies
FFilament
Created by Cem on 11/11/2024 in #❓┊help
Help with form outside Panel
import defaultTheme from 'tailwindcss/defaultTheme';
import preset from './vendor/filament/support/tailwind.config.preset'

/** @type {import('tailwindcss').Config} */
export default {
presets: [preset],
content: [
'./vendor/laravel/framework/src/Illuminate/Pagination/resources/views/*.blade.php',
'./storage/framework/views/*.php',
'node_modules/preline/dist/*.js',
'./resources/**/*.blade.php',
'./resources/**/*.js',
'./resources/**/*.vue',
],
theme: {
extend: {
fontFamily: {
sans: ['InterVariable', ...defaultTheme.fontFamily.sans],
},
},
},
plugins: [
'preline/plugin',
],
};
import defaultTheme from 'tailwindcss/defaultTheme';
import preset from './vendor/filament/support/tailwind.config.preset'

/** @type {import('tailwindcss').Config} */
export default {
presets: [preset],
content: [
'./vendor/laravel/framework/src/Illuminate/Pagination/resources/views/*.blade.php',
'./storage/framework/views/*.php',
'node_modules/preline/dist/*.js',
'./resources/**/*.blade.php',
'./resources/**/*.js',
'./resources/**/*.vue',
],
theme: {
extend: {
fontFamily: {
sans: ['InterVariable', ...defaultTheme.fontFamily.sans],
},
},
},
plugins: [
'preline/plugin',
],
};
13 replies
FFilament
Created by Cem on 11/1/2024 in #❓┊help
Issue with minimal theme outside Panel
@Zep Fietje
3 replies