Code Monkey home page Code Monkey logo

crud-laravel8-app's People

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

leomoraes75 00mjk

crud-laravel8-app's Issues

Feature: Add Products Management with Tags

Resume

CRUD of products, tags with List/Search

Use Cases

  • CRUD Products with pagination
  • CRUD Tags with pagination
  • One Product can be more than 1 tag
  • Report: Tags -> Total Products

Schema

CREATE TABLE `product` (
  `id` int NOT NULL AUTO_INCREMENT,
  `name` varchar(50) NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `name_UNIQUE` (`name`)
);
CREATE TABLE `tag` (
  `id` int NOT NULL AUTO_INCREMENT,
  `name` varchar(50) NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `name_UNIQUE` (`name`)
);
CREATE TABLE `product_tag` (
   `product_id` int NOT NULL,
   `tag_id` int NOT NULL,
   PRIMARY KEY (`product_id`,`tag_id`),
   CONSTRAINT `product_id` FOREIGN KEY (`product_id`) REFERENCES `product` (`id`),
   CONSTRAINT `tag_id` FOREIGN KEY (`tag_id`) REFERENCES `tag` (`id`)
);

Tasks

  • Create Test Unit
  • Create Products: Resources, Routes, MVC, Migrations and Seeds
  • Create Test Unit
  • Create Tags: Resources, Routes, MVC, Migrations and Seeds
  • Create Test Unit of Relantionship
  • Create Report (Route, Controller, View)
  • Add instructions in Readme
  • Share SQL of Report in Readme

Autenticação: Instalação do Jetstream com Livewire e sem times

Atalhos para usar o Sail

Sail como um aliase de ./vendor/bin/sail

Para Zsh

echo "alias sail='./vendor/bin/sail'" >> ~/.zshrc
Para Bash
echo "alias sail='./vendor/bin/sail'" >> ~/.bash_profile

Depois atualizei editando o arquivo zshrc

alias sail='[ -f sail ] && bash sail || bash vendor/bin/sail'
alias sailartisan='sail php artisan '

Instalação do Jetstream com Liveware

https://laravel.com/docs/8.x/authentication
sail php artisan jetstream:install livewire
Para instalar a opção de gerenciar time (criar, associar usuários)
https://jetstream.laravel.com/1.x/installation.html
sail php artisan jetstream:install livewire --teams

Publicar os componentes do Livewire para personalizar depois

Livewire

Se você estiver usando o Livewire, você deve primeiro publicar os componentes Blade do Livewire:

sail php artisan vendor:publish --tag=jetstream-views

Se por exemplo desejar personalizar o logotipo, os SVGs estão localizados nos componentes:

  • resources/views/vendor/jetstream/components/application-logo.blade.php
  • resources/views/vendor/jetstream/components/authentication-card-logo.blade.php
  • resources/views/vendor/jetstream/components/application-mark.blade.php.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.