composed project, added packages, models, controllers, seeders, mirgations etc.
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
<?php
|
||||
|
||||
use App\Services\Image\Image;
|
||||
|
||||
return [
|
||||
|
||||
/*
|
||||
|
||||
@@ -103,6 +103,6 @@ return [
|
||||
|
|
||||
*/
|
||||
|
||||
'prefix' => env('CACHE_PREFIX', Str::slug(env('APP_NAME', 'laravel'), '_').'_cache_'),
|
||||
'prefix' => env('CACHE_PREFIX', Str::slug(env('APP_NAME', 'laravel'), '_') . '_cache_'),
|
||||
|
||||
];
|
||||
|
||||
24
config/common.php
Normal file
24
config/common.php
Normal file
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package: events-venues-task
|
||||
* @author: Yevhen Odynets
|
||||
* @date: 2024-07-26
|
||||
* @time: 10:43
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
return [
|
||||
'seeding' => [
|
||||
'flush_cache' => true,
|
||||
'model' => [
|
||||
'venue' => [
|
||||
'count' => 20,
|
||||
],
|
||||
'event' => [
|
||||
'count' => 50,
|
||||
],
|
||||
],
|
||||
],
|
||||
];
|
||||
@@ -147,7 +147,7 @@ return [
|
||||
|
||||
'options' => [
|
||||
'cluster' => env('REDIS_CLUSTER', 'redis'),
|
||||
'prefix' => env('REDIS_PREFIX', Str::slug(env('APP_NAME', 'laravel'), '_').'_database_'),
|
||||
'prefix' => env('REDIS_PREFIX', Str::slug(env('APP_NAME', 'laravel'), '_') . '_database_'),
|
||||
],
|
||||
|
||||
'default' => [
|
||||
|
||||
@@ -39,7 +39,7 @@ return [
|
||||
'public' => [
|
||||
'driver' => 'local',
|
||||
'root' => storage_path('app/public'),
|
||||
'url' => env('APP_URL').'/storage',
|
||||
'url' => env('APP_URL') . '/storage',
|
||||
'visibility' => 'public',
|
||||
'throw' => false,
|
||||
],
|
||||
|
||||
39
config/image.php
Normal file
39
config/image.php
Normal file
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package: events-venues-task
|
||||
* @author: Yevhen Odynets
|
||||
* @date: 2024-07-27
|
||||
* @time: 07:45
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
use App\Services\Faker\Image\Contracts\FakerImageProviderType;
|
||||
|
||||
return [
|
||||
'faker' => [
|
||||
'provider' => [
|
||||
'loremflickr' => [
|
||||
"host" => "https://loremflickr.com/",
|
||||
'type' => FakerImageProviderType::LoremFlickr,
|
||||
],
|
||||
],
|
||||
'cropper' => [800], //see Image facade's method "cropAlign" for details
|
||||
],
|
||||
'storage' => [
|
||||
'poster' => 'public/images/poster',
|
||||
],
|
||||
'verbosity' => true,
|
||||
"log_path" => 'logs/image_facade.log',
|
||||
'meta' => [
|
||||
'width' => 0,
|
||||
'height' => 1,
|
||||
'type' => 2,
|
||||
'tag' => 3,
|
||||
'bits' => 'bits',
|
||||
'channels' => 'channels',
|
||||
'mime' => 'mime',
|
||||
],
|
||||
'mime_allowed' => ["image/jpeg", "image/gif", "image/png"],
|
||||
];
|
||||
@@ -89,7 +89,7 @@ return [
|
||||
'handler_with' => [
|
||||
'host' => env('PAPERTRAIL_URL'),
|
||||
'port' => env('PAPERTRAIL_PORT'),
|
||||
'connectionString' => 'tls://'.env('PAPERTRAIL_URL').':'.env('PAPERTRAIL_PORT'),
|
||||
'connectionString' => 'tls://' . env('PAPERTRAIL_URL') . ':' . env('PAPERTRAIL_PORT'),
|
||||
],
|
||||
'processors' => [PsrLogMessageProcessor::class],
|
||||
],
|
||||
@@ -122,9 +122,9 @@ return [
|
||||
'driver' => 'monolog',
|
||||
'handler' => NullHandler::class,
|
||||
],
|
||||
|
||||
'emergency' => [
|
||||
'path' => storage_path('logs/laravel.log'),
|
||||
'app' => [
|
||||
'driver' => 'single',
|
||||
'path' => storage_path('logs/app.log'),
|
||||
],
|
||||
|
||||
],
|
||||
|
||||
@@ -129,7 +129,7 @@ return [
|
||||
|
||||
'cookie' => env(
|
||||
'SESSION_COOKIE',
|
||||
Str::slug(env('APP_NAME', 'laravel'), '_').'_session'
|
||||
Str::slug(env('APP_NAME', 'laravel'), '_') . '_session'
|
||||
),
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user