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
35 lines
848 B
<?php
|
|
|
|
use Illuminate\Support\Facades\Route;
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Web Routes
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Here is where you can register web routes for your application. These
|
|
| routes are loaded by the RouteServiceProvider within a group which
|
|
| contains the "web" middleware group. Now create something great!
|
|
|
|
|
*/
|
|
|
|
Route::get('/update', function () {
|
|
$user = \App\Models\User::first();
|
|
$user->fill(['name' => 'xxxxxx']);
|
|
$user->saveRich();
|
|
|
|
return 'done';
|
|
return view('welcome');
|
|
});
|
|
|
|
Route::get('/', function () {
|
|
$user = new \App\Models\User([
|
|
'name'=>'test',
|
|
'email' => 'aaaa',
|
|
'status' => "active"
|
|
]);
|
|
$user->saveRich();
|
|
|
|
return 'done';
|
|
return view('welcome');
|
|
});
|