Mudanças entre as edições de "Laravel"

De MochilaWiki
Ir para navegaçãoIr para pesquisar
 
(3 revisões intermediárias pelo mesmo usuário não estão sendo mostradas)
Linha 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
Linha 8: Linha 13:
 
</source>
 
</source>
  
 +
 +
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 ==
 
== mudando padrão de timezone ==
Linha 42: Linha 52:
 
* https://qiita.com/miriwo/items/104e0a6584b8ff44b01e
 
* https://qiita.com/miriwo/items/104e0a6584b8ff44b01e
 
* https://gist.github.com/conroyp/16830ff1f360b52639ae
 
* https://gist.github.com/conroyp/16830ff1f360b52639ae
 +
 +
== Auditável ==
 +
* http://www.laravel-auditing.com/
 +
* https://github.com/owen-it/laravel-auditing
 +
* https://github.com/ldemafelix/laravel-auditor
 +
* https://pusher.com/tutorials/realtime-audit-trail-laravel

Edição atual tal como às 22h43min de 12 de dezembro de 2022

apagando tabela

  1. php artisan tinker
  2. Schema::drop('your_table_name')
  3. php artisan migrate

Estudar

php artisan tinker
now();


How to to send mail using gmail in Laravel?

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


Laravel MailCatcher

Auditável