Question and answer is powered by AnsPress.io
How can I select data greater than current date in Laravel. I want to select those data which date is greater than current date. I can’t select data from the database, please help me.
You want to select data which greater than from current date. Set greater than in where clause for example:
<?php $data=$celebrity->where('date_of_birth','>',$c_date)->take('10'); print_r($data); ?>