Paginate in Laravel

I am writing the below code to paginate record…

$Categories = \App\Models\Skill\Category_Model::all()->paginate(15);

Then I got a runtime error says:

Method paginate does not exist.

I’ve found a solution here, but couldn’t handle it by myself so I need help How to Perform Laravel Custom Pagination | Adeva
Am I missing something ?