Skip to content

Instantly share code, notes, and snippets.

@rohman
Created December 2, 2013 11:16

Revisions

  1. rohman created this gist Dec 2, 2013.
    11 changes: 11 additions & 0 deletions Page.php
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    <?php namespace App\Models;

    class Page extends Eloquent
    {
    protected $table = 'pages';

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