mohamedali5738
mohamedali5738
FFilament
Created by mohamedali5738 on 5/31/2024 in #❓┊help
how to make sound with notification database in filament
this is my code " @php $notificationss = DB::table('notifications')->get(); @endphp @if(count($notificationss) >=1 ) <script> function playNotificationSound() { const audio = new Audio('/sounds/notification.wav'); audio.play(); }
</script>
<div class="notification"> <script> playNotificationSound(); setInterval(() => { playNotificationSound() }, 10000); </script> </div> @endif" how to inject this code in filament ?
3 replies
FFilament
Created by mohamedali5738 on 5/4/2024 in #❓┊help
how to make sound with notifications in filament
how to make sound with notifications in filament
5 replies
FFilament
Created by mohamedali5738 on 5/4/2024 in #❓┊help
how to make sound with notifications in filament
how to make sound with notifications in filament
4 replies
FFilament
Created by mohamedali5738 on 1/7/2024 in #❓┊help
error when delete any record in filament
No description
4 replies
FFilament
Created by mohamedali5738 on 1/6/2024 in #❓┊help
this error show me when delete record this error show me when delete record
getAttributeAndLocale(): Argument #1 ($key) must be of type string, null given in astrotomic\laravel-translatable i thank proble is here " public static function getRecordTitle(?Model $record): string | Htmlable | null { return $record?->getAttribute(static::getRecordTitleAttribute()) ?? static::getModelLabel(); }" because i am using multi lang and when delete , it doesnot show title of record trans
3 replies
FFilament
Created by mohamedali5738 on 1/6/2024 in #❓┊help
Add [name] to fillable property to allow mass assignment on [App\Models\Country].
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; use Astrotomic\Translatable\Contracts\Translatable as TranslatableContract; use Astrotomic\Translatable\Translatable; class Country extends Model implements TranslatableContract { use HasFactory; use Translatable; protected $with = ['translations']; public $translatedAttributes = ['name']; } <?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class CountryTranslation extends Model { use HasFactory; protected $fillable = [ 'name','locale' ,'country_id', ]; public $timestamps = false; }
2 replies
FFilament
Created by mohamedali5738 on 1/2/2024 in #❓┊help
how to set locale from dashboard in filament
how to set locale from dashboard in filament
15 replies
FFilament
Created by mohamedali5738 on 1/2/2024 in #❓┊help
how filament store multi-language to translation table
how filament store multi-language to translation table such as blog table and blog translation table
if any package handle this case ?
3 replies
FFilament
Created by mohamedali5738 on 12/17/2023 in #❓┊help
modal didn`t show
No description
15 replies
FFilament
Created by mohamedali5738 on 12/17/2023 in #❓┊help
make modal form
No description
7 replies
FFilament
Created by mohamedali5738 on 12/16/2023 in #❓┊help
make modal form
No description
2 replies