Mudanças entre as edições de "Laravel"
De MochilaWiki
Ir para navegaçãoIr para pesquisarLinha 1: | Linha 1: | ||
+ | == apagando tabela | ||
+ | # php artisan tinker | ||
+ | # Schema::drop('your_table_name') | ||
+ | # php artisan migrate | ||
+ | |||
== Estudar == | == Estudar == | ||
* https://github.com/LaravelDaily/Laravel-User-Registration-Country-State-City | * https://github.com/LaravelDaily/Laravel-User-Registration-Country-State-City |
Edição das 22h43min de 12 de dezembro de 2022
== apagando tabela
- php artisan tinker
- Schema::drop('your_table_name')
- php artisan migrate
Estudar
- https://github.com/LaravelDaily/Laravel-User-Registration-Country-State-City
- https://github.com/LaravelDaily/laravel-roles-permissions-manager
php artisan tinker
now();
How to to send mail using gmail in Laravel?
- https://stackoverflow.com/questions/32515245/how-to-to-send-mail-using-gmail-in-laravel
- https://medium.com/@agavitalis/how-to-send-an-email-in-laravel-using-gmail-smtp-server-53d962f01a0c
- https://medium.com/graymatrix/using-gmail-smtp-server-to-send-email-in-laravel-91c0800f9662
mudando padrão de timezone
- Para alterar o padrão de horário, em config/app.php, altere
'timezone' => 'UTC',
para
'timezone' => 'America/Sao_Paulo',
forçando https
acrescente no arquivo app/Providers/AppServiceProvider.php
dentro da função boot
public function boot() { \URL::forceScheme('https');
retirado de https://stackoverflow.com/questions/28402726/laravel-5-redirect-to-https/28403907#28403907
artisan
php artisan route:list - lista todas as rotas
Soft Deleting
- https://medium.com/@mateusgalasso/laravel-softdelete-53225310848f
- https://blog.especializati.com.br/aprenda-como-utilizar-o-recurso-de-soft-deleting-do-laravel/
Laravel MailCatcher
- https://qiita.com/miriwo/items/104e0a6584b8ff44b01e
- https://gist.github.com/conroyp/16830ff1f360b52639ae