id로 되어 있어서 숫자를 입력해 봤더니, 에러가 나오네요..
getContentView를 보니..
$content = Content::where('content_id', $id)->first();
로 되어 있네요..
그래서 제대로된 의미로 본다면..
web.php
// 내용관리
Route::get('contents/{content_id}', ['as' => 'content.show', 'uses' => 'ContentsController@show']);
content.php
[code]
// 내용 상세 데이터 가져오기
public function getContentView($content_id)
{
$content = Content::where('content_id', $content_id)->first();
[/code]
실제 의미로만 본다고 하면.. content_name이 더 맞을 것도 같네요..
댓글 1개