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.

35 lines
848 B

2 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. $user = new \App\Models\User([
  22. 'name'=>'test',
  23. 'email' => 'aaaa',
  24. 'status' => "active"
  25. ]);
  26. $user->saveRich();
  27. return 'done';
  28. return view('welcome');
  29. });