/newspaper-laravel-tarea2

#LARAVEL #LUMEN #API #HTTP

Primary LanguagePHP

Lumen PHP Framework

Build Status Total Downloads Latest Stable Version License

Laravel Lumen is a stunningly fast PHP micro-framework for building web applications with expressive, elegant syntax. We believe development must be an enjoyable, creative experience to be truly fulfilling. Lumen attempts to take the pain out of development by easing common tasks used in the majority of web projects, such as routing, database abstraction, queueing, and caching.

Note: In the years since releasing Lumen, PHP has made a variety of wonderful performance improvements. For this reason, along with the availability of Laravel Octane, we no longer recommend that you begin new projects with Lumen. Instead, we recommend always beginning new projects with Laravel.

Official Documentation

Documentation for the framework can be found on the Lumen website.

Contributing

Thank you for considering contributing to Lumen! The contribution guide can be found in the Laravel documentation.

Security Vulnerabilities

If you discover a security vulnerability within Lumen, please send an e-mail to Taylor Otwell at taylor@laravel.com. All security vulnerabilities will be promptly addressed.

License

The Lumen framework is open-sourced software licensed under the MIT license.

Instrucciones para el Proyecto

Ejecutar el proyecto

php -S localhost:8000 -t public

Migrations

Creación de una tabla

php artisan make:migration create_categories_table

Ejecutar migration

php artisan migrate

Hacer rollback de migration

php artisan migrate:rollback

Hacer cambios en la estructura de la BD utilizando migrations

php artisan make:migration add_category_id_to_contents_table --table=contents
php artisan make:migration drop_columns_tags_featured_to_contents_table --table=contents
php artisan make:migration change_columns_pretitle_edition_date_to_contents_table --table=contents

Crear Seeder para una tabla

php artisan make:seeder CategoriesTableSeeder

Ejecutar el Seeder a una tabla o a toda la BD

php artisan db:seed --class=ContentsTableSeeder
php artisan db:seed