tuta / mytuta
Tools Tutacare
Installs: 272
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/tuta/mytuta
Requires
- intervention/image: ^2.3
This package is not auto-updated.
Last update: 2025-11-01 00:28:07 UTC
README
Just tools
Install:
"require": {
"laravel/framework": "5.2.*",
...
"tuta/mytuta": "1.1.*"
},
composer update
'providers' => array(
...
Tuta\Mytuta\MytutaServiceProvider::class,
),
'alias' => array(
...
'Mytuta' => Tuta\Mytuta\Facades\MytutaFacade::class,
),
#requires
'providers' => array(
...
Intervention\Image\ImageServiceProvider::class,
),
Upload File
$upload = (Mytuta::Uploadfile($request->file('file'),'yourfolder'));
return:
$upload['name'] //mengambil nama file
$upload['size'] //mengambil data ukuran file
$upload['mime'] //mengambil mime type dari file yang di upload
#Upload Image
$upload = Mytuta::uploadImage($request->file($image), $path, $width, $height); return: $upload = Image Name
#Upload Image For Edit
$upload = Mytuta::uploadImageEdit($request->file($image), $path, $image_edit, $width, $height); //$image_edit is name of image to delete return: $upload = Image Name
Read File & Image
Route::get('your-url/{file}', function($file = null)
{
return Mytuta::readFile($file,'yourfolder');
});