how to use constant value in laravel controller

Posted 5 months ago by tanveerkhanwd

i have this code and i want to use it in my controller:

        echo Config::get('constant.displayPageRecords');
        $records = 20;
        $newsLetter = NewsLatterData::orderBy('updated_at','DESC')->paginate($records);
        return view('admin.newsletter.index',['newsLetter'=>$newsLetter,'records'=>$records]);
    }

Please sign in or create an account to participate in this conversation.