수색…
입력 받기
 Input을 얻는 주된 방법은 Illuminate\Http\Request 를 컨트롤러에 주입하는 것입니다. 그런 다음 데이터에 액세스하는 다양한 방법이 있으며 그 중 4 개는 아래 예제에 있습니다. 
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
class UserController extends Controller
{
    public function store(Request $request)
    {
        // Returns the username value
        $name = $request->input('username');
        // Returns the username value
        $name = $request->username;
        // Returns the username value
        $name = request('username');
        // Returns the username value again
        $name = request()->username;
    }
}
 input 기능을 사용할 때 요청 입력을 사용할 수없는 경우에 대한 기본값을 추가 할 수도 있습니다 
$name = $request->input('username', 'John Doe');
Modified text is an extract of the original Stack Overflow Documentation
        아래 라이선스 CC BY-SA 3.0
        와 제휴하지 않음 Stack Overflow