ZamboDev
ZamboDev
FFilament
Created by ZamboDev on 5/22/2024 in #❓┊help
After Create Docente, Create User
Hello, this is the context. I have a system where I generate the Teachers resource, then this resource is the one that provides me with the basic CRUD in filament. What I need to do is that when creating the teacher, also creates a user of the filament, I have tried with listeners and functions in the resource create the teacher, but the user is not created, what I have done for now is to make a trigger directly in the database to trigger the creation of the user when a teacher is inserted, however the problem is that the user password is not encrypted and does not allow me to log in to the system if the key is not encrypted. Any ideas on how to do this? Here is my teacher resource code
3 replies
FFilament
Created by ZamboDev on 4/9/2024 in #❓┊help
How to use the custom page?
Hello, I need help using the custom page. The problem I have is with tailwind classes, when I use any color class for example "bg-green-500", this style is not applied on my page :c Does anyone know how to solve it or what is causing it? This is my code for my custom page <x-filament-panels::page> <div class="container mx-auto px-4 py-8"> <div class="inline-flex flex-row"> <h1 class=" font-bold mb-4 p-2">Docente: {{ auth()->user()->name }}</h1> <h1 class=" font-bold mb-4 p-2">Periodo: </h1> </div> <table class="w-full bg-white border border-green-800 rounded-xl shadow-emerald-400"> <thead class="bg-green-500"> <tr> <th class="py-2 px-4 ">Carrera</th> <th class="py-2 px-4 ">Materia</th> <th class="py-2 px-4">NRC</th> <th class="py-2 px-4">Acción</th> </tr> </thead> <tbody> </tbody> </table> </div> <table class="w-full bg-white border border-gray-200 rounded shadow-md"> <thead class="bg-green-500"> <tr> <th colspan="6" class="py-2 text-center border-2">Horario Asignado</th> </tr> <tr> <!-- Aquí mantienes tus encabezados de columna como lo tienes actualmente --> <th class="py-2 px-4 border-2">Hora</th> <th class="py-2 px-4 border-2">Lunes</th> <th class="py-2 px-4 border-2">Martes</th> <th class="py-2 px-4 border-2">Miércoles</th> <th class="py-2 px-4 border-2">Jueves</th> <th class="py-2 px-4 border-2">Viernes</th> </tr> </thead> <tbody> @foreach ($collection as $item)
@endforeach </tbody> </table>
<div class="container mx-auto px-4 py-8"> </div> </x-filament-panels::page>
2 replies