????

Your IP : 3.140.246.119


Current Path : /home/thenclexdoctor.com/.trash/app/Http/Controllers/Web/
Upload File :
Current File : /home/thenclexdoctor.com/.trash/app/Http/Controllers/Web/PagesController.php

<?php

namespace App\Http\Controllers\Web;

use App\Http\Controllers\Controller;
use App\Models\Page;
use Illuminate\Http\Request;

class PagesController extends Controller
{
    public function index($link)
    {
        $firstCharacter = substr($link, 0, 1);
        if ($firstCharacter !== '/') {
            $link = '/' . $link;
        }

        $page = Page::where('link', $link)
            ->where('status', 'publish')
            ->first();

        if (!empty($page)) {
            $data = [
                'pageTitle' => $page->title,
                'pageDescription' => $page->seo_description,
                'pageRobot' => $page->robot ? 'index, follow, all' : 'NOODP, nofollow, noindex',
                'page' => $page
            ];

            return view('web.default.pages.other_pages', $data);
        }

        abort(404);
    }
}

Page not found | The NCLEX Doctor

Page not found!

Sorry, this page is not available...