web.php 973 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?php
  2. /*
  3. |--------------------------------------------------------------------------
  4. | Web Routes
  5. |--------------------------------------------------------------------------
  6. |
  7. | Here is where you can register web routes for your application. These
  8. | routes are loaded by the RouteServiceProvider within a group which
  9. | contains the "web" middleware group. Now create something great!
  10. |
  11. */
  12. Route::get('/', function () {
  13. return view('welcome');
  14. });
  15. Route::get('attachment/{md5}', [
  16. 'as' => 'attachment.download',
  17. 'uses' => 'Web\AttachmentController@download',
  18. ]);
  19. Route::get('image/{md5}', [
  20. 'as' => 'attachment.image',
  21. 'uses' => 'Web\AttachmentController@image',
  22. ]);
  23. Route::get('/test',function() {
  24. $password = bcrypt('admin');
  25. dd($password);
  26. dd(dict()->get('user_info','work_type'));
  27. $password = bcrypt('admin');
  28. dd($password);
  29. $obj = new \App\Services\User\Info();
  30. $obj = $obj->find(1);
  31. var_dump($obj);exit;
  32. });