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
| <?php namespace Scheduler\Repositories; | |
| interface AppointmentRepositoryInterface { | |
| /** | |
| * Create appointment | |
| * @param array $input | |
| * @return Appointment Object | |
| */ |
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
| <?php namespace Scheduler\Repositories; | |
| use \Ardent; | |
| use Carbon; | |
| class EloquentAppointmentRepository extends Ardent implements AppointmentRepositoryInterface { | |
| // public $account_id = Auth::user()->account_id; | |
| protected $table = 'appointments'; |
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
| <?php namespace Scheduler\Appointment; | |
| class EloquentAppointmentRepository implements AppointmentRepositoryInterface { | |
| // public $account_id = Auth::user()->account_id; | |
| public static function create(array $data) | |
| { |
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
| <?php | |
| use Scheduler\Appointment\AppointmentRepositoryInterface as Appointment; | |
| class AppointmentsController extends \BaseController { | |
| protected $appointment; | |
| public function __construct(Appointment $appointment) |
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
| <?php namespace Scheduler\Appointment; | |
| use \Ardent; | |
| class EloquentAppointmentRepository extends Ardent implements AppointmentRepositoryInterface { | |
| // public $account_id = Auth::user()->account_id; | |
| protected $table = 'appointments'; |
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
| <?php | |
| namespace Scheduler\Appointment; | |
| interface AppointmentInterface { | |
| /** | |
| * Get all appointments for a user | |
| * @param int $userID | |
| * @return Appointments Object |
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
| 'use strict'; | |
| angular.module('kcaApp') | |
| .controller('VoteCtrl', function ($scope, $http, $timeout, $rootScope, $compile, $routeParams, $location, localStorageService, JSONService, nextCategoryService) { | |
| //////////////////////////////////////////////////////////////////////////////////////////// | |
| // | |
| // Configuration | |
| // |
NewerOlder