DevShaded
DevShaded
Explore posts from servers
FFilament
Created by DevShaded on 1/2/2025 in #❓┊help
Tenancy with entire domain returns 404
I fixed the problem, when I stored the domain i stored it as an url like this http://club1.test instead of just the domain like this club.test 🙂
4 replies
FFilament
Created by DevShaded on 12/29/2024 in #❓┊help
Filament handling encryption and decryption
Sorry for the ping
15 replies
FFilament
Created by DevShaded on 12/29/2024 in #❓┊help
Filament handling encryption and decryption
ok nvm ahha
15 replies
FFilament
Created by DevShaded on 12/29/2024 in #❓┊help
Filament handling encryption and decryption
Ah, its fixed lol
15 replies
FFilament
Created by DevShaded on 12/29/2024 in #❓┊help
Filament handling encryption and decryption
// Seeder
$users = User::factory(10)->create();

foreach ($users as $user) {
OauthClient::factory(5)->create([
'user_id' => $user->id,
]);
}
// Seeder
$users = User::factory(10)->create();

foreach ($users as $user) {
OauthClient::factory(5)->create([
'user_id' => $user->id,
]);
}
15 replies
FFilament
Created by DevShaded on 12/29/2024 in #❓┊help
Filament handling encryption and decryption
This is how my factory and seeder looks like
// Factory
public function definition(): array
{
$stateParameters = [
'random_string' => bin2hex(random_bytes(16)),
'session_id' => 'user_session_12345',
'csrf_token' => bin2hex(random_bytes(32)),
];

return [
'client_id' => $this->faker->word(),
'client_secret' => Crypt::encrypt('example-client-secret-' . Str::random(10)),
'authorization_endpoint' => 'https://example.com/oauth/authorize',
'token_endpoint' => 'https://example.com/oauth/token',
'redirect_uris' => [
['uri' => 'http://localhost:8000/callback'],
['uri' => 'http://localhost:8000/callback'],
],
'scopes' => [
['scope' => 'read'],
['scope' => 'write'],
],
'grant_types' => [
['grant_type' => 'authorization_code'],
['grant_type' => 'implicit'],
['grant_type' => 'client_credentials'],
['grant_type' => 'refresh_token'],
],
'state_parameter' => $this->faker->randomElement($stateParameters),
'created_at' => Carbon::now(),
'updated_at' => Carbon::now(),

'user_id' => User::factory(),
];
}
// Factory
public function definition(): array
{
$stateParameters = [
'random_string' => bin2hex(random_bytes(16)),
'session_id' => 'user_session_12345',
'csrf_token' => bin2hex(random_bytes(32)),
];

return [
'client_id' => $this->faker->word(),
'client_secret' => Crypt::encrypt('example-client-secret-' . Str::random(10)),
'authorization_endpoint' => 'https://example.com/oauth/authorize',
'token_endpoint' => 'https://example.com/oauth/token',
'redirect_uris' => [
['uri' => 'http://localhost:8000/callback'],
['uri' => 'http://localhost:8000/callback'],
],
'scopes' => [
['scope' => 'read'],
['scope' => 'write'],
],
'grant_types' => [
['grant_type' => 'authorization_code'],
['grant_type' => 'implicit'],
['grant_type' => 'client_credentials'],
['grant_type' => 'refresh_token'],
],
'state_parameter' => $this->faker->randomElement($stateParameters),
'created_at' => Carbon::now(),
'updated_at' => Carbon::now(),

'user_id' => User::factory(),
];
}
15 replies
FFilament
Created by DevShaded on 12/29/2024 in #❓┊help
Filament handling encryption and decryption
That’s true, I had some issues when creating seeders with the encrypted fields it does not work for some reason when I try to view them in the filament panel
15 replies
FFilament
Created by DevShaded on 12/29/2024 in #❓┊help
Filament handling encryption and decryption
Oh, nvm... I viewd a old one that wasnt encrypted thats was I got the error
15 replies
FFilament
Created by DevShaded on 12/29/2024 in #❓┊help
Filament handling encryption and decryption
No description
15 replies
FFilament
Created by Elías Culqui on 12/29/2024 in #❓┊help
Does anyone know how to fix this error "ERROR Command "filament:optimize" is not defined"?
No problem!
46 replies
FFilament
Created by Elías Culqui on 12/29/2024 in #❓┊help
Does anyone know how to fix this error "ERROR Command "filament:optimize" is not defined"?
Time to deploy now haha
46 replies
FFilament
Created by Elías Culqui on 12/29/2024 in #❓┊help
Does anyone know how to fix this error "ERROR Command "filament:optimize" is not defined"?
Very very nice! Well, now I dont need to be sad becacuse I couln't help you 😄
46 replies
FFilament
Created by Elías Culqui on 12/29/2024 in #❓┊help
Does anyone know how to fix this error "ERROR Command "filament:optimize" is not defined"?
And this is based on laravel 11x btw
46 replies
FFilament
Created by Elías Culqui on 12/29/2024 in #❓┊help
Does anyone know how to fix this error "ERROR Command "filament:optimize" is not defined"?
Couldnt paste it in here because I dont have nitro
46 replies
FFilament
Created by Elías Culqui on 12/29/2024 in #❓┊help
Does anyone know how to fix this error "ERROR Command "filament:optimize" is not defined"?
This is how my composer.json file looks like https://hastebin.com/share/mekawuwowa.swift
46 replies
FFilament
Created by Elías Culqui on 12/29/2024 in #❓┊help
Does anyone know how to fix this error "ERROR Command "filament:optimize" is not defined"?
With the little hat before the version number?
46 replies
FFilament
Created by Elías Culqui on 12/29/2024 in #❓┊help
Does anyone know how to fix this error "ERROR Command "filament:optimize" is not defined"?
Does the composer.json look like this "filament/filament": "^3.2"
46 replies
FFilament
Created by Elías Culqui on 12/29/2024 in #❓┊help
Does anyone know how to fix this error "ERROR Command "filament:optimize" is not defined"?
How is the version still locked at v3.2.0? When I run that command i get this output...
php artisan about --only=filament

Filament ...........................................................................................................
Blade Icons ............................................................................................. NOT CACHED
Packages ........................................................... filament, forms, notifications, support, tables
Panel Components ........................................................................................ NOT CACHED
Version ................................................................................................... v3.2.131
Views ................................................................................................ NOT PUBLISHED
php artisan about --only=filament

Filament ...........................................................................................................
Blade Icons ............................................................................................. NOT CACHED
Packages ........................................................... filament, forms, notifications, support, tables
Panel Components ........................................................................................ NOT CACHED
Version ................................................................................................... v3.2.131
Views ................................................................................................ NOT PUBLISHED
46 replies
FFilament
Created by Elías Culqui on 12/29/2024 in #❓┊help
Does anyone know how to fix this error "ERROR Command "filament:optimize" is not defined"?
No problem, sad to see this didn't help. Hope this can be fixed soon so you can deploy your app!
46 replies
FFilament
Created by Elías Culqui on 12/29/2024 in #❓┊help
Does anyone know how to fix this error "ERROR Command "filament:optimize" is not defined"?
46 replies