Route::get('/contact/career', function (Request $request) { App::setLocale('th'); $career = App\ContactCareer::first(); $career = $career->translate('th', 'en'); $career_jobs = App\Career::where('is_active', 1)->orderBy('order', 'asc')->get(); $career_jobs = $career_jobs->translate('th', 'en'); return view('contact_career', compact('request', 'career', 'career_jobs')); }); Route::post('/contact', 'MailController@contact_email'); Route::post('/developments/{project?}', 'MailController@project_email'); /** * Developments */ Route::get('/developments/{project_name?}', function (Request $request, $project_name = '') { App::setLocale('th'); if (!empty($project_name)) { $project = App\Development::where('url', $project_name)->first(); $project = $project->translate('th', 'en'); $markdown_budget = App\Development::where('url', $project_name)->first(); $markdown_budget = $markdown_budget->translate('th', 'en'); $dataArr = explode("\n", $markdown_budget->budget); $lat = ''; $lng = ''; if ($markdown_budget->latlng) { $latlng = explode(",", $markdown_budget->latlng); $lat = $latlng[0]; $lng = $latlng[1]; } return view('developments.projects', compact('project', 'dataArr', 'lat', 'lng', 'request')); } else { $developments_1 = App\Development::where('featured', 1)->where('status', 1)->orderBy('order', 'asc')->get(); $developments_2 = App\Development::where('featured', 0)->where('status', 1)->orderBy('order', 'asc')->get(); $developments_1 = $developments_1->translate('th', 'en'); $developments_2 = $developments_2->translate('th', 'en'); return view('development', compact('request', 'developments_1', 'developments_2')); } });
"Call to a member function translate() on null"
Key | Value |
REDIRECT_REDIRECT_REDIRECT_REDIRECT_UNIQUE_ID | "ZgUzaeTrLbd5tFDoDi2StwAAAAc"
|
REDIRECT_REDIRECT_REDIRECT_REDIRECT_HTTPS | "on"
|
REDIRECT_REDIRECT_REDIRECT_REDIRECT_SSL_TLS_SNI | "www.fragrantproperty.com"
|
REDIRECT_REDIRECT_REDIRECT_REDIRECT_STATUS | "200"
|
REDIRECT_REDIRECT_REDIRECT_UNIQUE_ID | "ZgUzaeTrLbd5tFDoDi2StwAAAAc"
|
REDIRECT_REDIRECT_REDIRECT_HTTPS | "on"
|
REDIRECT_REDIRECT_REDIRECT_SSL_TLS_SNI | "www.fragrantproperty.com"
|
REDIRECT_REDIRECT_REDIRECT_STATUS | "200"
|
REDIRECT_REDIRECT_UNIQUE_ID | "ZgUzaeTrLbd5tFDoDi2StwAAAAc"
|
REDIRECT_REDIRECT_HTTPS | "on"
|
REDIRECT_REDIRECT_SSL_TLS_SNI | "www.fragrantproperty.com"
|
REDIRECT_REDIRECT_STATUS | "200"
|
REDIRECT_UNIQUE_ID | "ZgUzaeTrLbd5tFDoDi2StwAAAAc"
|
REDIRECT_HTTPS | "on"
|
REDIRECT_SSL_TLS_SNI | "www.fragrantproperty.com"
|
REDIRECT_STATUS | "200"
|
UNIQUE_ID | "ZgUzaeTrLbd5tFDoDi2StwAAAAc"
|
HTTPS | "on"
|
SSL_TLS_SNI | "www.fragrantproperty.com"
|
HTTP_ACCEPT | "*/*"
|
HTTP_USER_AGENT | "claudebot"
|
HTTP_HOST | "www.fragrantproperty.com"
|
PATH | "/sbin:/usr/sbin:/bin:/usr/bin"
|
SERVER_SIGNATURE | "" |
SERVER_SOFTWARE | "Apache/2"
|
SERVER_NAME | "www.fragrantproperty.com"
|
SERVER_ADDR | "122.155.171.10"
|
SERVER_PORT | "443"
|
REMOTE_ADDR | "100.26.35.111"
|
DOCUMENT_ROOT | "/home/admin/domains/fragrantproperty.com/private_html"
|
REQUEST_SCHEME | "https"
|
CONTEXT_PREFIX | "" |
CONTEXT_DOCUMENT_ROOT | "/home/admin/domains/fragrantproperty.com/private_html"
|
SERVER_ADMIN | "webmaster@fragrantproperty.com"
|
SCRIPT_FILENAME | "/home/admin/domains/fragrantproperty.com/private_html/corp/public/index.php"
|
REMOTE_PORT | "57318"
|
REDIRECT_URL | "/corp/public/th/developments/Ocean-Horizon-Pattaya"
|
GATEWAY_INTERFACE | "CGI/1.1"
|
SERVER_PROTOCOL | "HTTP/1.1"
|
REQUEST_METHOD | "GET"
|
QUERY_STRING | "" |
REQUEST_URI | "/th/developments/Ocean-Horizon-Pattaya"
|
SCRIPT_NAME | "/corp/public/index.php"
|
PHP_SELF | "/corp/public/index.php"
|
REQUEST_TIME_FLOAT | 1711616873.515
|
REQUEST_TIME | 1711616873
|
APP_NAME | "Laravel"
|
APP_ENV | "local"
|
APP_KEY | "base64:ABuakLG6+pteEfM+Z8VLFJSqw7Qbi6SFfieTCGqo5iM="
|
APP_DEBUG | "true"
|
APP_LOG_LEVEL | "debug"
|
APP_URL | "https://www.fragrantproperty.com"
|
DB_CONNECTION | "mysql"
|
DB_HOST | "localhost"
|
DB_PORT | "3306"
|
DB_DATABASE | "admin_webcorp"
|
DB_USERNAME | "admin_webcorp"
|
DB_PASSWORD | "7e@BRdVrs8Lp"
|
BROADCAST_DRIVER | "log"
|
CACHE_DRIVER | "file"
|
SESSION_DRIVER | "file"
|
SESSION_LIFETIME | "120"
|
QUEUE_DRIVER | "sync"
|
REDIS_HOST | "localhost"
|
REDIS_PASSWORD | "null"
|
REDIS_PORT | "6379"
|
MAIL_DRIVER | "smtp"
|
MAIL_HOST | "mail.fragrantproperty.com"
|
MAIL_PORT | "587"
|
MAIL_USERNAME | "inquiry2@fragrantproperty.com"
|
MAIL_PASSWORD | "4SR3cJAuVGqmJ"
|
MAIL_ENCRYPTION | "" |
PUSHER_APP_ID | "" |
PUSHER_APP_KEY | "" |
PUSHER_APP_SECRET | "" |
PUSHER_APP_CLUSTER | "mt1"
|
BG_LOGIN | "/assets/images/home_hero.jpg"
|
BG_PROFILE | "/assets/images/about_hero.jpg"
|
Key | Value |
APP_NAME | "Laravel"
|
APP_ENV | "local"
|
APP_KEY | "base64:ABuakLG6+pteEfM+Z8VLFJSqw7Qbi6SFfieTCGqo5iM="
|
APP_DEBUG | "true"
|
APP_LOG_LEVEL | "debug"
|
APP_URL | "https://www.fragrantproperty.com"
|
DB_CONNECTION | "mysql"
|
DB_HOST | "localhost"
|
DB_PORT | "3306"
|
DB_DATABASE | "admin_webcorp"
|
DB_USERNAME | "admin_webcorp"
|
DB_PASSWORD | "7e@BRdVrs8Lp"
|
BROADCAST_DRIVER | "log"
|
CACHE_DRIVER | "file"
|
SESSION_DRIVER | "file"
|
SESSION_LIFETIME | "120"
|
QUEUE_DRIVER | "sync"
|
REDIS_HOST | "localhost"
|
REDIS_PASSWORD | "null"
|
REDIS_PORT | "6379"
|
MAIL_DRIVER | "smtp"
|
MAIL_HOST | "mail.fragrantproperty.com"
|
MAIL_PORT | "587"
|
MAIL_USERNAME | "inquiry2@fragrantproperty.com"
|
MAIL_PASSWORD | "4SR3cJAuVGqmJ"
|
MAIL_ENCRYPTION | "" |
PUSHER_APP_ID | "" |
PUSHER_APP_KEY | "" |
PUSHER_APP_SECRET | "" |
PUSHER_APP_CLUSTER | "mt1"
|
BG_LOGIN | "/assets/images/home_hero.jpg"
|
BG_PROFILE | "/assets/images/about_hero.jpg"
|