PHP code example of mtsung / joymap-core
1. Go to this page and download the library: Download mtsung/joymap-core library . Choose the download type require .
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
mtsung / joymap-core example snippets
config('joymap.xxxxxxxx');
__('joymap::xxxxxxxx');
use League\Flysystem\GoogleCloudStorage\PortableVisibilityHandler;
return [
'disks' => [
'gcs' => [
'driver' => 'gcs',
'project_id' => env('GOOGLE_CLOUD_PROJECT_ID', ''),
'key_file' => json_decode(@file_get_contents(base_path(env('GOOGLE_CLOUD_KEY_FILE', null))), true),
'bucket' => env('GOOGLE_CLOUD_STORAGE_BUCKET', ''),
'path_prefix' => env('GOOGLE_CLOUD_STORAGE_PATH_PREFIX', ''),
'storage_api_uri' => env('GOOGLE_CLOUD_STORAGE_API_URI', null),
'visibility' => PortableVisibilityHandler::NO_PREDEFINED_VISIBILITY,
'throw' => true,
],
],
];
return [
'driver' => 'imagick'
];
return [
'http_status_code' =>[
41000 => 422,
41001 => 422,
51000 => 500,
],
];
public function render($request, Throwable $e): Response
{
if ($this->shouldReport($e)) {
$message = LineNotification::getMsgText($e);
event(new SendErrorNotifyEvent($message));
}
return parent::render($request, $e);
}