I am new to laravel and i cannot understand the following code while learning laravel i know that we use '::' to call the static function of a class but using '->' after calling the static function creates confusion for me
use App\Post;
Route::get('/forcedelete', function () {
Post::withTrashed()->where('id',1)->forcedelete();
});;