diff --git a/_ide_helper.php b/_ide_helper.php index a47ba85..e2cddaa 100644 --- a/_ide_helper.php +++ b/_ide_helper.php @@ -1,7 +1,7 @@ * @see https://github.com/barryvdh/laravel-ide-helper @@ -2209,118 +2209,6 @@ public static function compileEchoDefaults($value) } - class Broadcast { - - /** - * Register the routes for handling broadcast authentication and sockets. - * - * @param array|null $attributes - * @return void - * @static - */ - public static function routes($attributes = null) - { - \Illuminate\Broadcasting\BroadcastManager::routes($attributes); - } - - /** - * Get the socket ID for the given request. - * - * @param \Illuminate\Http\Request|null $request - * @return string|null - * @static - */ - public static function socket($request = null) - { - return \Illuminate\Broadcasting\BroadcastManager::socket($request); - } - - /** - * Begin broadcasting an event. - * - * @param mixed|null $event - * @return \Illuminate\Broadcasting\PendingBroadcast|void - * @static - */ - public static function event($event = null) - { - return \Illuminate\Broadcasting\BroadcastManager::event($event); - } - - /** - * Queue the given event for broadcast. - * - * @param mixed $event - * @return void - * @static - */ - public static function queue($event) - { - \Illuminate\Broadcasting\BroadcastManager::queue($event); - } - - /** - * Get a driver instance. - * - * @param string $driver - * @return mixed - * @static - */ - public static function connection($driver = null) - { - return \Illuminate\Broadcasting\BroadcastManager::connection($driver); - } - - /** - * Get a driver instance. - * - * @param string $name - * @return mixed - * @static - */ - public static function driver($name = null) - { - return \Illuminate\Broadcasting\BroadcastManager::driver($name); - } - - /** - * Get the default driver name. - * - * @return string - * @static - */ - public static function getDefaultDriver() - { - return \Illuminate\Broadcasting\BroadcastManager::getDefaultDriver(); - } - - /** - * Set the default driver name. - * - * @param string $name - * @return void - * @static - */ - public static function setDefaultDriver($name) - { - \Illuminate\Broadcasting\BroadcastManager::setDefaultDriver($name); - } - - /** - * Register a custom driver creator Closure. - * - * @param string $driver - * @param \Closure $callback - * @return $this - * @static - */ - public static function extend($driver, $callback) - { - return \Illuminate\Broadcasting\BroadcastManager::extend($driver, $callback); - } - - } - class Bus { /** @@ -5699,445 +5587,6 @@ public static function setEventDispatcher($dispatcher) } - class Mail { - - /** - * Set the global from address and name. - * - * @param string $address - * @param string|null $name - * @return void - * @static - */ - public static function alwaysFrom($address, $name = null) - { - \Illuminate\Mail\Mailer::alwaysFrom($address, $name); - } - - /** - * Set the global reply-to address and name. - * - * @param string $address - * @param string|null $name - * @return void - * @static - */ - public static function alwaysReplyTo($address, $name = null) - { - \Illuminate\Mail\Mailer::alwaysReplyTo($address, $name); - } - - /** - * Set the global to address and name. - * - * @param string $address - * @param string|null $name - * @return void - * @static - */ - public static function alwaysTo($address, $name = null) - { - \Illuminate\Mail\Mailer::alwaysTo($address, $name); - } - - /** - * Begin the process of mailing a mailable class instance. - * - * @param mixed $users - * @return \Illuminate\Mail\PendingMail - * @static - */ - public static function to($users) - { - return \Illuminate\Mail\Mailer::to($users); - } - - /** - * Begin the process of mailing a mailable class instance. - * - * @param mixed $users - * @return \Illuminate\Mail\PendingMail - * @static - */ - public static function bcc($users) - { - return \Illuminate\Mail\Mailer::bcc($users); - } - - /** - * Send a new message when only a raw text part. - * - * @param string $text - * @param mixed $callback - * @return void - * @static - */ - public static function raw($text, $callback) - { - \Illuminate\Mail\Mailer::raw($text, $callback); - } - - /** - * Send a new message when only a plain part. - * - * @param string $view - * @param array $data - * @param mixed $callback - * @return void - * @static - */ - public static function plain($view, $data, $callback) - { - \Illuminate\Mail\Mailer::plain($view, $data, $callback); - } - - /** - * Render the given message as a view. - * - * @param string|array $view - * @param array $data - * @return \Illuminate\View\View - * @static - */ - public static function render($view, $data = array()) - { - return \Illuminate\Mail\Mailer::render($view, $data); - } - - /** - * Send a new message using a view. - * - * @param string|array|\Illuminate\Mail\MailableContract $view - * @param array $data - * @param \Closure|string $callback - * @return void - * @static - */ - public static function send($view, $data = array(), $callback = null) - { - \Illuminate\Mail\Mailer::send($view, $data, $callback); - } - - /** - * Queue a new e-mail message for sending. - * - * @param string|array|\Illuminate\Mail\MailableContract $view - * @param string|null $queue - * @return mixed - * @static - */ - public static function queue($view, $queue = null) - { - return \Illuminate\Mail\Mailer::queue($view, $queue); - } - - /** - * Queue a new e-mail message for sending on the given queue. - * - * @param string $queue - * @param string|array $view - * @return mixed - * @static - */ - public static function onQueue($queue, $view) - { - return \Illuminate\Mail\Mailer::onQueue($queue, $view); - } - - /** - * Queue a new e-mail message for sending on the given queue. - * - * This method didn't match rest of framework's "onQueue" phrasing. Added "onQueue". - * - * @param string $queue - * @param string|array $view - * @return mixed - * @static - */ - public static function queueOn($queue, $view) - { - return \Illuminate\Mail\Mailer::queueOn($queue, $view); - } - - /** - * Queue a new e-mail message for sending after (n) seconds. - * - * @param \DateTimeInterface|\DateInterval|int $delay - * @param string|array|\Illuminate\Mail\MailableContract $view - * @param string|null $queue - * @return mixed - * @static - */ - public static function later($delay, $view, $queue = null) - { - return \Illuminate\Mail\Mailer::later($delay, $view, $queue); - } - - /** - * Queue a new e-mail message for sending after (n) seconds on the given queue. - * - * @param string $queue - * @param \DateTimeInterface|\DateInterval|int $delay - * @param string|array $view - * @return mixed - * @static - */ - public static function laterOn($queue, $delay, $view) - { - return \Illuminate\Mail\Mailer::laterOn($queue, $delay, $view); - } - - /** - * Get the view factory instance. - * - * @return \Illuminate\Contracts\View\Factory - * @static - */ - public static function getViewFactory() - { - return \Illuminate\Mail\Mailer::getViewFactory(); - } - - /** - * Get the Swift Mailer instance. - * - * @return \Swift_Mailer - * @static - */ - public static function getSwiftMailer() - { - return \Illuminate\Mail\Mailer::getSwiftMailer(); - } - - /** - * Get the array of failed recipients. - * - * @return array - * @static - */ - public static function failures() - { - return \Illuminate\Mail\Mailer::failures(); - } - - /** - * Set the Swift Mailer instance. - * - * @param \Swift_Mailer $swift - * @return void - * @static - */ - public static function setSwiftMailer($swift) - { - \Illuminate\Mail\Mailer::setSwiftMailer($swift); - } - - /** - * Set the queue manager instance. - * - * @param \Illuminate\Contracts\Queue\Factory $queue - * @return $this - * @static - */ - public static function setQueue($queue) - { - return \Illuminate\Mail\Mailer::setQueue($queue); - } - - /** - * Register a custom macro. - * - * @param string $name - * @param object|callable $macro - * @return void - * @static - */ - public static function macro($name, $macro) - { - \Illuminate\Mail\Mailer::macro($name, $macro); - } - - /** - * Mix another object into the class. - * - * @param object $mixin - * @return void - * @static - */ - public static function mixin($mixin) - { - \Illuminate\Mail\Mailer::mixin($mixin); - } - - /** - * Checks if macro is registered. - * - * @param string $name - * @return bool - * @static - */ - public static function hasMacro($name) - { - return \Illuminate\Mail\Mailer::hasMacro($name); - } - - } - - class Notification { - - /** - * Send the given notification to the given notifiable entities. - * - * @param \Illuminate\Support\Collection|array|mixed $notifiables - * @param mixed $notification - * @return void - * @static - */ - public static function send($notifiables, $notification) - { - \Illuminate\Notifications\ChannelManager::send($notifiables, $notification); - } - - /** - * Send the given notification immediately. - * - * @param \Illuminate\Support\Collection|array|mixed $notifiables - * @param mixed $notification - * @param array|null $channels - * @return void - * @static - */ - public static function sendNow($notifiables, $notification, $channels = null) - { - \Illuminate\Notifications\ChannelManager::sendNow($notifiables, $notification, $channels); - } - - /** - * Get a channel instance. - * - * @param string|null $name - * @return mixed - * @static - */ - public static function channel($name = null) - { - return \Illuminate\Notifications\ChannelManager::channel($name); - } - - /** - * Get the default channel driver name. - * - * @return string - * @static - */ - public static function getDefaultDriver() - { - return \Illuminate\Notifications\ChannelManager::getDefaultDriver(); - } - - /** - * Get the default channel driver name. - * - * @return string - * @static - */ - public static function deliversVia() - { - return \Illuminate\Notifications\ChannelManager::deliversVia(); - } - - /** - * Set the default channel driver name. - * - * @param string $channel - * @return void - * @static - */ - public static function deliverVia($channel) - { - \Illuminate\Notifications\ChannelManager::deliverVia($channel); - } - - /** - * Get a driver instance. - * - * @param string $driver - * @return mixed - * @static - */ - public static function driver($driver = null) - { - //Method inherited from \Illuminate\Support\Manager - return \Illuminate\Notifications\ChannelManager::driver($driver); - } - - /** - * Register a custom driver creator Closure. - * - * @param string $driver - * @param \Closure $callback - * @return $this - * @static - */ - public static function extend($driver, $callback) - { - //Method inherited from \Illuminate\Support\Manager - return \Illuminate\Notifications\ChannelManager::extend($driver, $callback); - } - - /** - * Get all of the created "drivers". - * - * @return array - * @static - */ - public static function getDrivers() - { - //Method inherited from \Illuminate\Support\Manager - return \Illuminate\Notifications\ChannelManager::getDrivers(); - } - - } - - class Password { - - /** - * Attempt to get the broker from the local cache. - * - * @param string $name - * @return \Illuminate\Contracts\Auth\PasswordBroker - * @static - */ - public static function broker($name = null) - { - return \Illuminate\Auth\Passwords\PasswordBrokerManager::broker($name); - } - - /** - * Get the default password broker name. - * - * @return string - * @static - */ - public static function getDefaultDriver() - { - return \Illuminate\Auth\Passwords\PasswordBrokerManager::getDefaultDriver(); - } - - /** - * Set the default password broker name. - * - * @param string $name - * @return void - * @static - */ - public static function setDefaultDriver($name) - { - \Illuminate\Auth\Passwords\PasswordBrokerManager::setDefaultDriver($name); - } - - } - class Queue { /** @@ -12496,8 +11945,6 @@ class Auth extends \Illuminate\Support\Facades\Auth {} class Blade extends \Illuminate\Support\Facades\Blade {} - class Broadcast extends \Illuminate\Support\Facades\Broadcast {} - class Bus extends \Illuminate\Support\Facades\Bus {} class Cache extends \Illuminate\Support\Facades\Cache {} @@ -14570,12 +14017,6 @@ class Lang extends \Illuminate\Support\Facades\Lang {} class Log extends \Illuminate\Support\Facades\Log {} - class Mail extends \Illuminate\Support\Facades\Mail {} - - class Notification extends \Illuminate\Support\Facades\Notification {} - - class Password extends \Illuminate\Support\Facades\Password {} - class Queue extends \Illuminate\Support\Facades\Queue {} class Redirect extends \Illuminate\Support\Facades\Redirect {} diff --git a/composer.json b/composer.json index 7622841..3598efe 100644 --- a/composer.json +++ b/composer.json @@ -6,6 +6,7 @@ "type": "project", "require": { "php": ">=7.0", + "ext-json": "*", "barryvdh/laravel-cors": "^0.9.2", "barryvdh/laravel-ide-helper": "^2.4", "doctrine/dbal": "^2.6", @@ -54,7 +55,7 @@ "sort-packages": true, "optimize-autoloader": true, "platform": { - "php": "7.1.7" + "php": "7.1.7", } } } diff --git a/database/migrations/2018_10_12_161641_add_index_for_log_table.php b/database/migrations/2018_10_12_161641_add_index_for_log_table.php new file mode 100644 index 0000000..b9d7863 --- /dev/null +++ b/database/migrations/2018_10_12_161641_add_index_for_log_table.php @@ -0,0 +1,33 @@ +index('category_id'); + $table->index('team_id'); + $table->index('level_id'); + $table->index('challenge_id'); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + // + } +}