
Table::getSession() 메서드는 Laravel의 Facade 중 하나인 Table이 아님에 유의하세요. Laravel의 Facade 중 하나인 Session을 사용하여 세션 데이터를 가져올 수 있습니다.
#hostingforum.kr
php
use IlluminateSupportFacadesSession;
$sessionData = Session::get('키');
또는
#hostingforum.kr
php
use IlluminateSupportFacadesSession;
$sessionData = Session::get('키', '기본값');
또는
#hostingforum.kr
php
use IlluminateSupportFacadesSession;
$sessionData = Session::get('키', function () {
// 기본값을 반환하는 함수
});
이러한 방법으로 세션 데이터를 가져올 수 있습니다.
2025-07-05 20:44