Skip to content

Instantly share code, notes, and snippets.

@rohman
Created December 2, 2013 11:16
Show Gist options
  • Save rohman/7748103 to your computer and use it in GitHub Desktop.
Save rohman/7748103 to your computer and use it in GitHub Desktop.
L4 Blog Models Page.php
<?php namespace App\Models;
class Page extends Eloquent
{
protected $table = 'pages';
public function author()
{
return $this->belongsTo('User');
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment