Adel
Adel
FFilament
Created by Adel on 11/11/2024 in #❓┊help
custom field styling
@ModestasV Thanks
5 replies
FFilament
Created by Adel on 11/9/2024 in #❓┊help
redirect new registered users to additional registration wizard
Yea this was the issue. Thanks @awcodes
6 replies
FFilament
Created by Adel on 11/9/2024 in #❓┊help
redirect new registered users to additional registration wizard
<?php

namespace App\Http\Middleware;

use Closure;
use Illuminate\Http\Request;
use Symfony\Component\HttpFoundation\Response;

class CreateTreeIfNotExists
{
/**
* Handle an incoming request.
*
* @param \Closure(\Illuminate\Http\Request): (\Symfony\Component\HttpFoundation\Response) $next
*/
public function handle(Request $request, Closure $next): Response
{
dump('create tree if not exists');

if(auth()->check() && !auth()->user()->trees()->exists()) {
return redirect()->route('filament.dashboard.pages.trees.wizard');
}

return $next($request);
}
}
<?php

namespace App\Http\Middleware;

use Closure;
use Illuminate\Http\Request;
use Symfony\Component\HttpFoundation\Response;

class CreateTreeIfNotExists
{
/**
* Handle an incoming request.
*
* @param \Closure(\Illuminate\Http\Request): (\Symfony\Component\HttpFoundation\Response) $next
*/
public function handle(Request $request, Closure $next): Response
{
dump('create tree if not exists');

if(auth()->check() && !auth()->user()->trees()->exists()) {
return redirect()->route('filament.dashboard.pages.trees.wizard');
}

return $next($request);
}
}
6 replies
FFilament
Created by Adel on 11/9/2024 in #❓┊help
redirect new registered users to additional registration wizard
the targeted user is logged in users
6 replies
FFilament
Created by Adel on 4/14/2024 in #❓┊help
Show array of urls in ImageEntry
@krekas yes
5 replies
FFilament
Created by Adel on 12/23/2023 in #❓┊help
how to combine live() with money mask()
live(debounce: 1000)
4 replies