Skip to content

Instantly share code, notes, and snippets.

View Davillo's full-sized avatar
🎯
Focusing

Davillo Aurélio Sidrim Davillo

🎯
Focusing
View GitHub Profile
@Davillo
Davillo / .env
Last active March 16, 2020 19:48
#BACKOFFICE
APP_NAME=SeuAppAqui
APP_ENV=local
APP_KEY=base64:bOqbJ1oKiYWCSv4KT8Y7gsgUMPkSkvdmRWjTyqNDYzw=
APP_DEBUG=true
APP_URL=https://delivery.seuappaqui.com.br/
LOG_CHANNEL=stack
# DB_CONNECTION=mysql
<?php
/**
* @author Alex Bilbie <hello@alexbilbie.com>
* @copyright Copyright (c) Alex Bilbie
* @license http://mit-license.org/
*
* @link https://github.com/thephpleague/oauth2-server
*/
namespace League\OAuth2\Server\Exception;
{"lastUpload":"2020-02-06T19:55:25.464Z","extensionVersion":"v3.4.3"}
static function handleUpload($file, string $path, string $imageName)
{
if (!self::checkDirectory(base_path() . $path))
mkdir(base_path() . $path);
Image::make($file)->encode('jpg', 70)->save(base_path() . $path . $imageName);
}