bodhi8370
bodhi8370
FFilament
Created by bodhi8370 on 2/27/2024 in #❓┊help
Stuck in a Filament Login Redirect Loop
I did a simple test by placing the a simple redirect inside the top of my index.php (main Laravel public file) to avoid the Laravel default blog. After I removed the code my login for Filament is now stuck in some sort of weird login loop. I've confirmed code was removed and tried a different system (possible browser or cache issue?) and I still get the same effect. I've reached out to the hosting company to see if they can assist, however, I thought I'd see if anyone has had experience with this and what one might do to resolved it. TIA for any suggestions. Below is my JS code that was briefly on the index file that started this issue. <script type="text/javascript"> <!-- window.location = "http://www.google.com/" //--> </script>
2 replies
FFilament
Created by bodhi8370 on 2/26/2024 in #❓┊help
Class "NumberFormatter" not found
I finally got to a Filament login page and can open up the Dashboard on my VPS. Yah! However, when I click on any of the links I receive a Class "NumberFormatter" not found" error. I think this means the specific php extension is not found? What have I tried? Some common solutions online: sudo apt-get install php.intl Added extension=php_intl.dll to all php.ini files composer require ext-intl manually added "require": { "ext-intl":" to the composer.json file Seem to be at a loss. In each instance the server was rebooted. Is there something I'm missing that can be checked/changed within Filament to resolve this and/or is there anything else anyone here can suggest? Locally this looks beautiful. This is for version 3 when I click on any table after logging in successfully. Update: resolved by hosting company.
6 replies
FFilament
Created by bodhi8370 on 12/15/2023 in #❓┊help
Relationship Does Not Exists
I'm struggling to make two tables connect. Seems straight forward:
1. Create your two tables and migrate them. Make sure your migration in one of the tables is connected to the other: $table->foreignId('owner_id')->constrained()->cascasdOnDelete(); 2. Create models for both tables. Fill in the 'protected $fillable' and make sure to create the relationship: public function alhusers(): HasOne { return $this->hasOne('ahlusers::class'); }
3. Create your Filament resource and call it from there: TextInput::make('users') ->relationship('ahlusers', 'abbr'), And here is the error I'm receiving: Method Filament\Forms\Components\TextInput::relationship does not exist. Yes, I can appreciate this is exactly what it means yet I'm not sure how to troubleshoot this any further. I checked for typos and looked through Google for solutions however I can't find a solution as they are in Laravel-specific context and years old - hence my post here. Thanks in advance.
20 replies
FFilament
Created by bodhi8370 on 12/15/2023 in #❓┊help
New Filament resource created - no resource to be found
Disclaimer: consider me a beginner/novice/noob
3 replies