mirror of
https://github.com/prurigro/hypothetical.git
synced 2024-11-09 19:26:38 -05:00
Fix capitalization on file class
This commit is contained in:
parent
731fab7261
commit
333827eaae
1 changed files with 3 additions and 3 deletions
|
@ -216,7 +216,7 @@ class DashboardController extends Controller {
|
||||||
return 'permission-fail';
|
return 'permission-fail';
|
||||||
} else if ($request->hasFile('file')) {
|
} else if ($request->hasFile('file')) {
|
||||||
$directory = base_path() . '/public/uploads/' . $request['model'] . '/img/';
|
$directory = base_path() . '/public/uploads/' . $request['model'] . '/img/';
|
||||||
file::makeDirectory($directory, 0755, true, true);
|
File::makeDirectory($directory, 0755, true, true);
|
||||||
$image = Image::make($request->file('file'));
|
$image = Image::make($request->file('file'));
|
||||||
$image->save($directory . $request['id'] . '-' . $request['name'] . '.jpg');
|
$image->save($directory . $request['id'] . '-' . $request['name'] . '.jpg');
|
||||||
$item->touch();
|
$item->touch();
|
||||||
|
@ -250,7 +250,7 @@ class DashboardController extends Controller {
|
||||||
return 'permission-fail';
|
return 'permission-fail';
|
||||||
} else if ($request->hasFile('file')) {
|
} else if ($request->hasFile('file')) {
|
||||||
$directory = base_path() . '/public/uploads/' . $request['model'] . '/files/';
|
$directory = base_path() . '/public/uploads/' . $request['model'] . '/files/';
|
||||||
file::makeDirectory($directory, 0755, true, true);
|
File::makeDirectory($directory, 0755, true, true);
|
||||||
$request->file('file')->move($directory, $request['id'] . '-' . $request['name'] . '.' . $request['ext']);
|
$request->file('file')->move($directory, $request['id'] . '-' . $request['name'] . '.' . $request['ext']);
|
||||||
$item->touch();
|
$item->touch();
|
||||||
return 'success';
|
return 'success';
|
||||||
|
@ -445,7 +445,7 @@ class DashboardController extends Controller {
|
||||||
$image->resize($new_width, $new_height);
|
$image->resize($new_width, $new_height);
|
||||||
}
|
}
|
||||||
|
|
||||||
file::makeDirectory(base_path() . '/public' . User::$profile_image_dir, 0755, true, true);
|
File::makeDirectory(base_path() . '/public' . User::$profile_image_dir, 0755, true, true);
|
||||||
$image->save($user->profileImage(true, true));
|
$image->save($user->profileImage(true, true));
|
||||||
$user->touch();
|
$user->touch();
|
||||||
return $user->profileImage() . '?version=' . $user->timestamp();
|
return $user->profileImage() . '?version=' . $user->timestamp();
|
||||||
|
|
Loading…
Reference in a new issue