You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
876 B

3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
  1. <?php
  2. use Illuminate\Support\Facades\Route;
  3. /*
  4. |--------------------------------------------------------------------------
  5. | Web Routes
  6. |--------------------------------------------------------------------------
  7. |
  8. | Here is where you can register web routes for your application. These
  9. | routes are loaded by the RouteServiceProvider within a group which
  10. | contains the "web" middleware group. Now create something great!
  11. |
  12. */
  13. // Route::get('/update', function () {
  14. // $user = \App\Models\User::first();
  15. // $user->fill(['name' => 'xxxxxx']);
  16. // $user->saveRich();
  17. // return 'done';
  18. // return view('welcome');
  19. // });
  20. Route::get('/', function () {
  21. $image = Image::thumbnail('../public/image.jpg', $request->w);
  22. $image->writeToFile('image-modified.jpg',[
  23. 'Q' => $request->q
  24. ]);
  25. echo '<img src="image-modified.jpg" alt="">';
  26. });