- Seleccionando Elementos del DOM (Document Object Model)
- Manipulando el DOM
- Recorriendo el DOM
El HTML DOM es un modelo de objetos estándar y una interfaz de programación para HTML. que define:
| #!/bin/sh | |
| set -e | |
| vendor/bin/phpunit | |
| (git push) || true | |
| git checkout production | |
| git merge master |
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Lista</title> | |
| </head> |
| Ubicarse en laragon/www | |
| 1) composer create-project --prefer-dist laravel/laravel laravel8 | |
| 2) cd laravel8 | |
| 3) Crear su base de datos en laragon, y configurarla en su archivo .env | |
| 4) composer require laravel/jetstream |
| DB::table('cities')->insert([ | |
| [ | |
| 'name' => 'Choloma', | |
| 'province_id' => '6', | |
| ], | |
| [ | |
| 'name' => 'La Lima', | |
| 'province_id' => '6', | |
| ], | |
| [ |
| <?php | |
| namespace App\Http\Controllers; | |
| use App\User; | |
| use Illuminate\Http\Request; | |
| class UserController extends Controller | |
| { | |
| /** |
| <?php | |
| namespace App; | |
| use Illuminate\Database\Eloquent\Model; | |
| class Product extends Model | |
| { | |
| /** | |
| * The attributes that are mass assignable. |
| <?php | |
| Route::get('/', function () { | |
| return [ | |
| 'Cursos' => [ | |
| 'Primeros pasos con Laravel', | |
| 'Crea un panel de control con Laravel', | |
| 'Patrones de diseño con PHP', | |
| ] | |
| ]; | |
| }); |
| class Vehicle extends Model | |
| { | |
| // Types of vehicles | |
| const SEDAN = 'sedan'; | |
| const TURISMO = 'turismo'; | |
| const SUV = 'suv'; | |
| const CAMIONETA = 'camioneta'; | |
| const FURGONETA = 'furgoneta'; | |
| const BUS = 'bus'; |
| #!/bin/bash | |
| # | |
| # Upgrades or Installs Xdebug on Mac OSX (Tested with Yosemite) YMMV | |
| # @author Michael Jett | |
| # @requires brew | |
| # | |
| # curl -kL http://git.io/vBGmR | bash | |
| # |