D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
tattooscyy
/
test
/
app
/
Http
/
Controllers
/
Filename :
CropperController.php
back
Copy
<?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')); } }