Created
April 22, 2015 13:11
-
-
Save jgrossi/b477d97ab350f6b48e63 to your computer and use it in GitHub Desktop.
Customizing Corcel classes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Creating your own class | |
namespace Your\Namespace; | |
use Corcel\Post as Corcel; | |
class Post extends Corcel | |
{ | |
public $table = 'your_table'; | |
} | |
// Using | |
$post = Your\Namespace\Post::find(123); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment