laravel-6 support

This commit is contained in:
RafficMohammed
2023-01-08 01:17:22 +05:30
parent 1a5c16ae4b
commit 774eed8b0e
4962 changed files with 279380 additions and 297961 deletions

View File

@@ -0,0 +1,11 @@
<?php
namespace UniSharp\LaravelFilemanager\Exceptions;
class DuplicateFileNameException extends \Exception
{
public function __construct()
{
$this->message = trans('laravel-filemanager::lfm.error-file-exist');
}
}

View File

@@ -0,0 +1,11 @@
<?php
namespace UniSharp\LaravelFilemanager\Exceptions;
class EmptyFileException extends \Exception
{
public function __construct()
{
$this->message = trans('laravel-filemanager::lfm.error-file-empty');
}
}

View File

@@ -0,0 +1,11 @@
<?php
namespace UniSharp\LaravelFilemanager\Exceptions;
class ExcutableFileException extends \Exception
{
public function __construct()
{
$this->message = 'Invalid file detected';
}
}

View File

@@ -0,0 +1,11 @@
<?php
namespace UniSharp\LaravelFilemanager\Exceptions;
class FileFailedToUploadException extends \Exception
{
public function __construct($error_code)
{
$this->message = 'File failed to upload. Error code: ' . $error_code;
}
}

View File

@@ -0,0 +1,11 @@
<?php
namespace UniSharp\LaravelFilemanager\Exceptions;
class FileSizeExceedConfigurationMaximumException extends \Exception
{
public function __construct($file_size)
{
$this->message = trans('laravel-filemanager::lfm.error-size') . $file_size;
}
}

View File

@@ -0,0 +1,11 @@
<?php
namespace UniSharp\LaravelFilemanager\Exceptions;
class FileSizeExceedIniMaximumException extends \Exception
{
public function __construct()
{
$this->message = trans('laravel-filemanager::lfm.error-file-size', ['max' => ini_get('upload_max_filesize')]);
}
}

View File

@@ -0,0 +1,11 @@
<?php
namespace UniSharp\LaravelFilemanager\Exceptions;
class InvalidMimeTypeException extends \Exception
{
public function __construct($mimetype)
{
$this->message = trans('laravel-filemanager::lfm.error-mime') . $mimetype;
}
}