app/User.php
/**
     * Fetch all threads that were created by the user.
     *
     * @return \Illuminate\Database\Eloquent\Relations\HasMany
     */
Fetch all threads that were created by the user.
Fetch all threads that were created by the user .
public function threads()
    {
        return $this->hasMany(Thread::class)->latest();
    }
public function threads ( ) { return $ this -> hasMany ( Thread :: class ) -> latest ( ) ; }
Fetch all threads that were created by the user.
Fetch all threads that were created by the user .
// latest() will be shown firstly. change the order