afoysal's avatar

Remove Datatable

How to remove Datatable from Laravel View ? I got below code in a view file.

<table>
    <tfoot>
        {!! $payers->withQueryString()->links() !!}
    </tfoot>
</table>

I am getting a pagination at the bottom of the Web Page like below.

error

How can I remove this DataTable ? I would like to display whole records.

0 likes
6 replies
aurawindsurfing's avatar

What do you mean by whole records?

Just remove <table> from blade ;-)

1 like
afoysal's avatar

@aurawindsurfing Thanks. Should I remove whole code <table> <tfoot> {!! $payers->withQueryString()->links() !!} </tfoot> </table> ?

aurawindsurfing's avatar

Just go ahead and try it! You will see effect on your screen ;-)

1 like
Lara_Love's avatar
Level 6

you write in controller for example

$user = User::all()->paginate(3);

but you should write just all();

$user = User::all();
1 like

Please or to participate in this conversation.