Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ronytacodev/table-relations-one-to-many-laravel8

Code to create table One-to-Many Relation with Laravel 8.
https://github.com/ronytacodev/table-relations-one-to-many-laravel8

boostrap laravel8 mysql-database one-to-many php

Last synced: about 1 month ago
JSON representation

Code to create table One-to-Many Relation with Laravel 8.

Awesome Lists containing this project

README

        


Build Status
Total Downloads
Latest Stable Version
License

# TABLE RELATIONS ONE TO MANY LARAVEL

Code to create table Relation One-to-Many with Laravel 8.

# Stack

* Laravel 8
* MySql
* Artisan
* Composer
* Bootstrap

## The Commands
* to create project --> composer create-project laravel/laravel:^8.0 relaciones-uno-muchos-laravel8 --ignore-platform-reqs
* php artisan make:model Producto ( para crear el modelo Producto)
* php artisan make:model Categoria ( para crear el modelo Categoria)
* php artisan make:migration create_categorias_table ( para crear la migración de la tabla Categoria)
* php artisan make:migration create_productos_table ( para crear la migración de la tabla Producto)
* php artisan migrate ( para correr las migraciones)
* php artisan make:controller RelacionController ( creamos un controlador para que nos gestione las relaciones)
* php artisan serve (para mostrar en la web)

## Screenshot

![](resources/assets/screenshot1.jpg)

![](resources/assets/screenshot2.jpg)

![](resources/assets/screenshot3.jpg)

![](resources/assets/screenshot4.jpg)

## About Laravel

Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experience to be truly fulfilling. Laravel takes the pain out of development by easing common tasks used in many web projects, such as:

- [Simple, fast routing engine](https://laravel.com/docs/routing).
- [Powerful dependency injection container](https://laravel.com/docs/container).
- Multiple back-ends for [session](https://laravel.com/docs/session) and [cache](https://laravel.com/docs/cache) storage.
- Expressive, intuitive [database ORM](https://laravel.com/docs/eloquent).
- Database agnostic [schema migrations](https://laravel.com/docs/migrations).
- [Robust background job processing](https://laravel.com/docs/queues).
- [Real-time event broadcasting](https://laravel.com/docs/broadcasting).

Laravel is accessible, powerful, and provides tools required for large, robust applications.

## Learning Laravel

Laravel has the most extensive and thorough [documentation](https://laravel.com/docs) and video tutorial library of all modern web application frameworks, making it a breeze to get started with the framework.

If you don't feel like reading, [Laracasts](https://laracasts.com) can help. Laracasts contains over 1500 video tutorials on a range of topics including Laravel, modern PHP, unit testing, and JavaScript. Boost your skills by digging into our comprehensive video library.

## Laravel Sponsors

We would like to extend our thanks to the following sponsors for funding Laravel development. If you are interested in becoming a sponsor, please visit the Laravel [Patreon page](https://patreon.com/taylorotwell).

### Premium Partners

- **[Vehikl](https://vehikl.com/)**
- **[Tighten Co.](https://tighten.co)**
- **[Kirschbaum Development Group](https://kirschbaumdevelopment.com)**
- **[64 Robots](https://64robots.com)**
- **[Cubet Techno Labs](https://cubettech.com)**
- **[Cyber-Duck](https://cyber-duck.co.uk)**
- **[Many](https://www.many.co.uk)**
- **[Webdock, Fast VPS Hosting](https://www.webdock.io/en)**
- **[DevSquad](https://devsquad.com)**
- **[OP.GG](https://op.gg)**

## Contributing

Thank you for considering contributing to the Laravel framework! The contribution guide can be found in the [Laravel documentation](https://laravel.com/docs/contributions).

## Code of Conduct

In order to ensure that the Laravel community is welcoming to all, please review and abide by the [Code of Conduct](https://laravel.com/docs/contributions#code-of-conduct).

## Security Vulnerabilities

If you discover a security vulnerability within Laravel, please send an e-mail to Taylor Otwell via [[email protected]](mailto:[email protected]). All security vulnerabilities will be promptly addressed.

## License

The Laravel framework is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).