php artisan make:middleware RedirectIfNotAdmin// in RedirectIfNotAdmin.php| <?php | |
| use Illuminate\Database\Migrations\Migration; | |
| use Illuminate\Database\Schema\Blueprint; | |
| use Illuminate\Support\Facades\Schema; | |
| return new class extends Migration | |
| { | |
| /** | |
| * Run the migrations. |
| <?php | |
| use Illuminate\Database\Migrations\Migration; | |
| use Illuminate\Database\Schema\Blueprint; | |
| use Illuminate\Support\Facades\Schema; | |
| return new class extends Migration | |
| { | |
| /** | |
| * Run the migrations. |
| //HTML | |
| <div class="avatar-file"> | |
| <label class = "text-bh-navy-500">Choose Image</label> | |
| <input type = "file" wire:model = "avatar"> | |
| </div> | |
| //LW Component | |
| use WithFileUploads; | |
| public $avatar; |
| function shuffleArray(arregloJugadores){ | |
| arregloJugadores.sort(()=> Math.random() - 0.5); | |
| } | |
| var jugadores = [ | |
| "Nani", | |
| "Diego", | |
| "Braian", | |
| "Fede", | |
| "Manu", |
| public class BuscadorCamino { | |
| ListaGenerica<String> caminoConPresupuesto(Grafo<String> ciudades, String origen, String destino, int montoMaximo) { | |
| ListaGenerica<String> camino = new ListaEnlazadaGenerica<String>(); | |
| ListaGenerica<String> temporal = new ListaEnlazadaGenerica<String>(); | |
| boolean[] marca = new boolean[ciudades.listaDeVertices().tamanio() + 1]; | |
| Vertice<String> vOrigen = buscar(ciudades, origen); | |
| if (vOrigen != null) | |
| caminoConPresupuesto(ciudades, destino, montoMaximo, camino, temporal, marca, vOrigen.getPosicion(), 0); |