estudos-desafios / crud-laravel8-app Goto Github PK
View Code? Open in Web Editor NEWPHP 8 | Laravel 8 | TailwindCss - CRUD, Sail, Jetstream, Sanctum
Home Page: http://laravel8.azurewebsites.net
PHP 8 | Laravel 8 | TailwindCss - CRUD, Sail, Jetstream, Sanctum
Home Page: http://laravel8.azurewebsites.net
Package swiftmailer/swiftmailer is abandoned, you should avoid using it. Use symfony/mailer instead.
The routes config can be better, refactor it later
The actual root is wwwroot/ and the Laravel is wwwroot/public
Change the config in /etc/nginx/sites-available/default
Add Repository Pattern when work into team and a big project
CRUD of products, tags with List/Search
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`)
);
curl -s "https://laravel.build/crud-laravel8-app?with= memcached,meilisearch,redis" | bash
cd crud-laravel8-app && ./vendor/bin/sail up
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 '
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
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:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.