This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// VueJS frontend | |
import ApiService from './api.service' | |
export type LoginCredentials = { | |
email: string; | |
password: string; | |
} | |
class AuthService { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// File: app/database/seeds/DatabaseSeeder.php | |
class DatabaseSeeder extends Seeder { | |
public function run() | |
{ | |
if (App::environment() === 'production') exit(); | |
Eloquent::unguard(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#1 | |
echo "Informe o nome do servidor (Ex.: siteexemplo) :" | |
read vhost | |
#2 | |
echo "Informe o caminho do site (Ex.: /var/www/sitexemplo) :" | |
read path |