This file contains hidden or 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
| //So you have your pivot table all set up.... So in a "Role," model (ha!) you would set up a many to many relationship like so: | |
| <?php | |
| public function users() | |
| { | |
| return $this->belongsToMany('\App\User'); | |
| } | |
| //and in your User model you would do something like: | |
| public function roles() | |
| { |
This file contains hidden or 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
| /** | |
| * Execute the command. | |
| * | |
| * @return void | |
| */ | |
| public function handle() | |
| { | |
| //boostrap SDK | |
| $slncClient = new ET_Client('slnc'); | |
| $postDE = new ET_DataExtension(); |
NewerOlder