<?php

class Author extends Eloquent {

    /**
     * Database table used by model
     */
    protected $table = 'authors';

    /**
     * Class Constants
     */

    const SHOW_NAME = 10;
    const SHOW_NICK = 20;
    const SHOW_BOTH = 30;

    /**
     * Author belongsTo User
     */
        public function user()
    {
        return $this->belongsTo('User');
    }
}

<?php

class Author extends Eloquent {

    /**
     * Database table used by model
     */
    protected $table = 'authors';

    /**
     * Class Constants
     */

    const SHOW_NAME = 10;
    const SHOW_NICK = 20;
    const SHOW_BOTH = 30;

    public function user()
    {
        return $this->belongsTo('User');
    }
}

--- 
+++ 
@@ -15,7 +15,10 @@
     const SHOW_NICK = 20;
     const SHOW_BOTH = 30;
 
-    public function user()
+    /**
+     * Author belongsTo User
+     */
+        public function user()
     {
         return $this->belongsTo('User');
     }
Add comment for relationship function
