Upgrade Laravel to 10.0.0

This commit is contained in:
2023-04-09 10:35:40 +00:00
parent 45af9dd591
commit 1396c31ca5
84 changed files with 2766 additions and 2958 deletions

View File

@ -9,11 +9,11 @@ use Illuminate\Support\Facades\Route;
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| is assigned the "api" middleware group. Enjoy building your API!
| routes are loaded by the RouteServiceProvider and all of them will
| be assigned to the "api" middleware group. Make something great!
|
*/
Route::middleware('auth:api')->get('/user', function (Request $request) {
Route::middleware('auth:sanctum')->get('/user', function (Request $request) {
return $request->user();
});
});