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
#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 |
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
<?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; |
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
{"lastUpload":"2020-02-06T19:55:25.464Z","extensionVersion":"v3.4.3"} |
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
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); | |
} |