Created
March 28, 2014 08:58
-
-
Save duikb00t/9828294 to your computer and use it in GitHub Desktop.
sadfsafasf
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 | |
class NewProject extends \Eloquent { | |
protected $fillable = []; | |
public static $campaignTypes = array( | |
'' => 'Choose One', | |
1 => 'Active', | |
2 => 'inactive', | |
3 => 'Deleted', | |
4 => 'Boring', | |
5 => 'Adventurer', | |
); | |
} | |
CONTROLLER:: | |
How to get the model values from $campaignTypes in the controller? | |
NewProject::campaignTypes |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment