use AppModelsPost;
This exception is thrown by either findOrFail() or firstOrFail() methods on the model ( User::firstOrFail() or User::findOrFail()). This means that the ID you are trying to get does not exist in the database.