Skip to content

Instantly share code, notes, and snippets.

@duikb00t
Created March 28, 2014 08:58
Show Gist options
  • Save duikb00t/9828294 to your computer and use it in GitHub Desktop.
Save duikb00t/9828294 to your computer and use it in GitHub Desktop.
sadfsafasf
<?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