bhattji
bhattji
FFilament
Created by bhattji on 9/13/2024 in #❓┊help
How to set the Avatar for the Tenant, in Filamentphp?
It worked, but it removed the name besides the Avatar. I need the name also
5 replies
FFilament
Created by Alnuaimi on 3/17/2024 in #❓┊help
auth()->user()->is_admin inside AdminPanel Provider return null
Ok so this is how it works, ->visible(fn() => auth()->user()->is_admin)
14 replies
FFilament
Created by Alnuaimi on 3/17/2024 in #❓┊help
auth()->user()->is_admin inside AdminPanel Provider return null
How to wrap? Can you please give some code example? Also, I have the same issue with Session. Is it the same?
14 replies
FFilament
Created by bhattji on 8/4/2024 in #❓┊help
Filament Settings
The solution is check if the DB exists function IsDbExists() { try { Illuminate\Support\Facades\DB::connection()->getPdo(); return true; } catch (\Exception $e) { return false; } }
33 replies
FFilament
Created by bhattji on 8/4/2024 in #❓┊help
Filament Settings
Great, that works as long as the DB exists, (php artisan migrate:fresh works) but if I delete the DB it doesn't (php artisan migrate doesn't work)
33 replies
FFilament
Created by bhattji on 8/4/2024 in #❓┊help
Filament Settings
btw, how to check if the database exists? So that, while regenerating, I can bypass.
33 replies
FFilament
Created by bhattji on 8/4/2024 in #❓┊help
Filament Settings
Ok, the issue was, I was accessing it in AdminPanelProvider. Great help, thanks a tonne
33 replies
FFilament
Created by bhattji on 8/4/2024 in #❓┊help
Filament Settings
But I have only defined it, not using in autoload file use App\Settings\GeneralSettings; function getSetting($setting_name): string { return app(GeneralSettings::class)->$setting_name; }
33 replies
FFilament
Created by bhattji on 8/4/2024 in #❓┊help
Filament Settings
How do share the stack trace? No, I am not accessing in service provider but in an autoload file (may be that is causing the issue)
33 replies
FFilament
Created by bhattji on 8/4/2024 in #❓┊help
Filament Settings
No, I did publish the migration, in fact I put the settings migration first by renaming the file with 00 000. But it does not generate any table since it looks for the settings table even before attempting to run any migration
33 replies
FFilament
Created by bhattji on 8/4/2024 in #❓┊help
Filament Settings
Yes, I followed, and it works all fine, that is not the issue. The problem comes if I have to regenerate the database. Earlier, if I give a new DB name in .env file, it use to regenerate the entire database. Now it gives error and asks for the settings table with all the settings values.
33 replies
FFilament
Created by bhattji on 8/4/2024 in #❓┊help
Filament Settings
I am facing a weird issue with Filament Settings Plugin (Spatie Settings) I have installed it and it works fine, however, if delete the database and try "php artisan migrate" it doesn't work. It asks for the settings table (created for Settings Plugin) with all the settings values. Fortunately, I did have the settings.sql saved. but if not, then how would I create the database?
33 replies
FFilament
Created by bhattji on 8/4/2024 in #❓┊help
Filament Settings
I removed the trailing "^3.2" and it got installed. Thanks for the support
33 replies
FFilament
Created by bhattji on 8/4/2024 in #❓┊help
Filament Settings
I tried installing the official filament settings plugin, but it gives error Problem 1 - filament/filament v3.2.0 requires illuminate/database ^10.0 -> found illuminate/database[v10.0.0, ..., v10.48.19] but these were not loaded, likely because it conflicts with another require. - filament/spatie-laravel-settings-plugin v3.2.0 requires filament/filament v3.2.0 -> satisfiable by filament/filament[v3.2.0]. - Root composer.json requires filament/spatie-laravel-settings-plugin 3.2 -> satisfiable by filament/spatie-laravel-settings-plugin[v3.2.0]. Installation failed, reverting ./composer.json and ./composer.lock to their original content. Please help
33 replies
FFilament
Created by bhattji on 8/4/2024 in #❓┊help
Filament Settings
Ok, can you send the link of that doc?
33 replies
FFilament
Created by bhattji on 8/4/2024 in #❓┊help
Filament Settings
I guess, this is quite complicated, novice like me need atleast a step-by-step tutorial doc, if not full video, specifically for Filament 3.x
33 replies
FFilament
Created by bhattji on 8/4/2024 in #❓┊help
How to bypass database violations?
OK, I have updated the code and check for the existing unique before updating. But I wonder, why can't the try-catch block do that for me? what is the use of try-catch then?
6 replies
FFilament
Created by bhattji on 8/4/2024 in #❓┊help
Filament Settings
Ok, do we have a video of its installation, usage etc
33 replies
FFilament
Created by bhattji on 8/4/2024 in #❓┊help
Filament Settings
composer require reworck/filament-settings ./composer.json has been updated Running composer update reworck/filament-settings Loading composer repositories with package information Updating dependencies Your requirements could not be resolved to an installable set of packages. Problem 1 - Root composer.json requires reworck/filament-settings * -> satisfiable by reworck/filament-settings[0.0.1, ..., 0.4. 0]. - reworck/filament-settings[0.0.1, ..., 0.4.0] require livewire/livewire ^v2.8.2 -> found livewire/livewire[v2.8.2, .. Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to sp ecific versions. You can also try re-running composer require with an explicit version constraint, e.g. "composer require reworck/filament- settings:*" to figure out if any version is installable, or "composer require reworck/filament-settings:^2.1" if you know which you need. Installation failed, reverting ./composer.json and ./composer.lock to their original content.
33 replies
FFilament
Created by bhattji on 8/4/2024 in #❓┊help
Filament Settings
It does not get installed (I am trying the one which uses spatie-valuestore in back-end)
33 replies