composed project, added packages, models, controllers, seeders, mirgations etc.

This commit is contained in:
2024-07-28 17:45:09 +03:00
parent 5d05ee373a
commit 56eec65355
73 changed files with 3576 additions and 368 deletions

View File

@@ -1,5 +1,7 @@
<?php
use App\Services\Image\Image;
return [
/*

View File

@@ -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
View 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,
],
],
],
];

View File

@@ -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' => [

View File

@@ -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
View 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"],
];

View File

@@ -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'),
],
],

View File

@@ -129,7 +129,7 @@ return [
'cookie' => env(
'SESSION_COOKIE',
Str::slug(env('APP_NAME', 'laravel'), '_').'_session'
Str::slug(env('APP_NAME', 'laravel'), '_') . '_session'
),
/*