题海让大学四年没有难题
白天模式登陆

题目详情

单选题 对于下面文件中的Laravel控制器中的showProfile()函数,可在路由文件中以()方式调用. <?php namespace App\Http\Controllers; use App\User; use App\Http\Controllers\Controller; class UserController extends Controller { public function showProfile($id) { return view('user.profile', ['user' => User::findOrFail($id)]); } } ?>

A. Route::get('user/{id}', 'UserController@showProfile')

B. Route::post('user/', 'UserController@showProfile')

C. Route::get('user/', 'UserController@showProfile')

D. Route::post('user/{id}', 'Controller@showProfile')

使用php开发WEB应用系统(含laravel框架)课程封面

学科:使用php开发WEB应用系统(含laravel框架)

时间:2024-05-23 12:35:32

Copyright © 2022 津ICP备2021001502号