|
|
@ -13,23 +13,21 @@ use Illuminate\Support\Facades\Route; |
|
|
|
| |
|
|
|
*/ |
|
|
|
|
|
|
|
Route::get('/update', function () { |
|
|
|
$user = \App\Models\User::first(); |
|
|
|
$user->fill(['name' => 'xxxxxx']); |
|
|
|
$user->saveRich(); |
|
|
|
// Route::get('/update', function () {
|
|
|
|
// $user = \App\Models\User::first();
|
|
|
|
// $user->fill(['name' => 'xxxxxx']);
|
|
|
|
// $user->saveRich();
|
|
|
|
|
|
|
|
return 'done'; |
|
|
|
return view('welcome'); |
|
|
|
}); |
|
|
|
// return 'done';
|
|
|
|
// return view('welcome');
|
|
|
|
// });
|
|
|
|
|
|
|
|
Route::get('/', function () { |
|
|
|
$user = new \App\Models\User([ |
|
|
|
'name'=>'test', |
|
|
|
'email' => 'aaaa', |
|
|
|
'status' => "active" |
|
|
|
|
|
|
|
$image = Image::thumbnail('../public/image.jpg', $request->w); |
|
|
|
$image->writeToFile('image-modified.jpg',[ |
|
|
|
'Q' => $request->q |
|
|
|
]); |
|
|
|
$user->saveRich(); |
|
|
|
echo '<img src="image-modified.jpg" alt="">'; |
|
|
|
|
|
|
|
return 'done'; |
|
|
|
return view('welcome'); |
|
|
|
}); |