# Laravel

# Laravel - comandos

```shell
# Crear proyecto laravel
composer create-project --prefer-dist laravel/laravel revalTest

# Ejecutar migraciones
php artisan migrate

# Recrear migraciones, rollback de las tablas y nueva creación de las mismas
php artisan migrate:refresh

# Ejecutar seeders
php artisan db:seed

# Crear modelo, -m para crear migración del modelo, -mc para crear migración y controlador del modelo
php artisan make:model ReadedEmail -m

# Instalar keys para OAuth
php artisan passport:install

php artisan make:auth

chown -R www-data:www-data /var/www/html/
chmod -R 755 /var/www/html/


php artisan make:migration add_paid_to_users_table --table=users

php artisan migrate --path=database/migrations/foo.php

```

# Laravel - CMS

[https://octobercms.com/ ](https://octobercms.com/)[https://octobercms.com/themes](https://octobercms.com/themes)

[https://github.com/octobercms/october](https://github.com/octobercms/october)

[https://lavalite.org/](https://lavalite.org/)

[https://github.com/lavalite/cms](https://github.com/lavalite/cms)

[https://asgardcms.com/](https://asgardcms.com/)

[https://github.com/AsgardCms/Platform](https://github.com/AsgardCms/Platform)

[https://typicms.org/](https://typicms.org/)

[https://github.com/typicms/base](https://github.com/typicms/base)

# Laravel - homestead

[https://www.youtube.com/watch?v=rs2Hzx4qBm8](https://www.youtube.com/watch?v=rs2Hzx4qBm8)

```shell
composer create-project --prefer-dist laravel/laravel revalTest

cd revalTest

composer require laravel/homestead --dev

vendor/bin/homestead make

vagrant up

vagrant ssh


```

# Laravel 6 CRUD

[https://www.siddharthshukla.in/blog/laravel-6-crud/](https://www.siddharthshukla.in/blog/laravel-6-crud/)