mohdaftab
mohdaftab
FFilament
Created by mohdaftab on 10/20/2024 in #❓┊help
Sushi to dynamically load data from API using search keyword
anyone please ?
5 replies
FFilament
Created by mohdaftab on 10/20/2024 in #❓┊help
Sushi to dynamically load data from API using search keyword
keywords are basically just numeric input
5 replies
FFilament
Created by mohdaftab on 10/20/2024 in #❓┊help
Sushi to dynamically load data from API using search keyword
This is my Model code
<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Facades\Http;

class TargetFinder extends Model
{
use \Sushi\Sushi;


public function getRows($data = [])
{
// Fetch data from your API
if (count($data)) {
$response = Http::get('https://jsonplaceholder.typicode.com/posts/' . $data['keyword'] . '/comments');
return $response->json();
} else {
$response = Http::get('https://jsonplaceholder.typicode.com/posts/1/comments');
return $response->json();
}
return [];
}
}
<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Facades\Http;

class TargetFinder extends Model
{
use \Sushi\Sushi;


public function getRows($data = [])
{
// Fetch data from your API
if (count($data)) {
$response = Http::get('https://jsonplaceholder.typicode.com/posts/' . $data['keyword'] . '/comments');
return $response->json();
} else {
$response = Http::get('https://jsonplaceholder.typicode.com/posts/1/comments');
return $response->json();
}
return [];
}
}
Thank you
5 replies
FFilament
Created by jamesro on 9/25/2024 in #❓┊help
Add roles / permissions per team for user
Thank you so much.
33 replies
FFilament
Created by jamesro on 9/25/2024 in #❓┊help
Add roles / permissions per team for user
@jamesro do share the solution here please, I might need it to make it simple as well.
33 replies
FFilament
Created by jamesro on 9/25/2024 in #❓┊help
Add roles / permissions per team for user
have you tried setting up setPermissionTeamId($team_id) before setting roles?
33 replies
FFilament
Created by neerajk on 9/3/2024 in #❓┊help
Textarea not showing content and having JS errors
@Leandro Ferreira I am sorry, I was using v3.0 stable and found this issue, but when I upgraded to v3.2 it all worked well.
7 replies
FFilament
Created by neerajk on 9/3/2024 in #❓┊help
Textarea not showing content and having JS errors
any fix yet ?
7 replies
FFilament
Created by mohdaftab on 8/23/2024 in #❓┊help
DateTimePicker showing seconds with minDate
It worked great, thank you so much @Leandro Ferreira
12 replies
FFilament
Created by mohdaftab on 8/23/2024 in #❓┊help
DateTimePicker showing seconds with minDate
bump
12 replies
FFilament
Created by mohdaftab on 8/23/2024 in #❓┊help
DateTimePicker showing seconds with minDate
No description
12 replies
FFilament
Created by mohdaftab on 8/23/2024 in #❓┊help
DateTimePicker showing seconds with minDate
even with seconds(false)
12 replies
FFilament
Created by mohdaftab on 8/23/2024 in #❓┊help
DateTimePicker showing seconds with minDate
it is not about storage really, it is the display in the form field which is showing seconds selection
12 replies
FFilament
Created by mohdaftab on 8/23/2024 in #❓┊help
DateTimePicker showing seconds with minDate
Hi @toeknee , I used the format but it still shows the seconds when I use minDate. Please let me know what do you mean by pass in the selector?
12 replies
FFilament
Created by mohdaftab on 8/16/2024 in #❓┊help
Replication causes 500 internal server error
it is on shared hosting.
5 replies
FFilament
Created by mohdaftab on 8/16/2024 in #❓┊help
Replication causes 500 internal server error
Hello, I am using php-fpm
5 replies
FFilament
Created by mohdaftab on 8/15/2024 in #❓┊help
How do I close Action modal using $wire when process is done
I got it working before with setting isOpen to false which closed the modal but it wasn't refreshing the parent. This does exactly like I needed. Thank you so much.
49 replies
FFilament
Created by mohdaftab on 8/15/2024 in #❓┊help
How do I close Action modal using $wire when process is done
Thank you so much.
49 replies
FFilament
Created by mohdaftab on 8/15/2024 in #❓┊help
How do I close Action modal using $wire when process is done
Perfect
49 replies
FFilament
Created by mohdaftab on 8/15/2024 in #❓┊help
How do I close Action modal using $wire when process is done
Thank you
49 replies