Primer commit proyecto Laravel

This commit is contained in:
2026-02-05 11:10:09 -06:00
commit e4559106d4
2153 changed files with 210301 additions and 0 deletions
+33
View File
@@ -0,0 +1,33 @@
<?php
namespace App\Livewire;
use App\Models\Material;
use Livewire\Component;
use Livewire\Attributes\On;
class ModalMaterias extends Component
{
public $material = null;
public $carrera;
#[On('edit-material')]
public function editMaterial($id)
{
$this->material = Material::findOrFail($id);
$this->dispatch('open-material-modal');
}
#[On('create-material')]
public function createMaterial()
{
$this->reset('material');
$this->dispatch('open-material-modal');
}
public function render()
{
return view('livewire.modal-materias');
}
}