관리-도구
편집 파일: CropperController.php.tar
home/tattooscyy/test/app/Http/Controllers/CropperController.php 0000604 00000002060 15224720501 0021061 0 ustar 00 <?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Saloon; use App\Artist; use App\Catalogs; use App\Picture; use Auth; class CropperController extends Controller { /* public function getIndex(Request $request) { $pipec = $request->pipec; $picture = $request->picture; $arr = getimagesize($pipec); if ($arr[0]) { $width_c = (int)$arr[0] / 38; } else { $width_c = 3; } if ($arr[1]) { $height_c = (int)$arr[1] / 38; } else { $height_c = 3; } $saloons = Saloon::where('showhide', 'show')->get(); $artists = Artist::where('showhide', 'show')->get(); $cats = Catalogs::where('showhide', 'show')->orderBy('type')->get(); return view('cropper', compact('saloons', 'cats', 'artists', 'picture', 'width_c', 'height_c')); } */ public function getEdit(Request $request) { $picture = $request->picture; return view('editcropper', compact('picture')); } }