for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace BeyondCode\LaravelWebSockets\Database\Console;
use Illuminate\Console\Command;
use BeyondCode\LaravelWebSockets\Database\Models\App;
class AppCreate extends Command
{
protected $signature = 'websockets:app:create';
protected $description = 'Create an app and save it on database.';
public function handle()
$name = $this->ask('What is the app name? (required)');
if (empty($name)) {
$this->handle();
return;
}
$host = $this->ask('Host: ');
$enable_client_messages = $this->confirm('Would you enable client messages?');
$enable_statistics = $this->confirm('Would you enable statistics?');
$this->comment('Creating your application, please wait...');
$app = App::create([
create()
BeyondCode\LaravelWebSockets\Database\Models\App
created()
This check marks calls to methods that do not seem to exist on an object.
This is most likely the result of a method being renamed without all references to it being renamed likewise.
'name' => $name,
'host' => $host,
'enable_client_messages' => $enable_client_messages,
'enable_statistics' => $enable_statistics,
]);
$this->info('Key: '.$app->key);
$this->info('Secret: '.$app->secret);
$this->comment('App has been created. Please save key and secret.');
This check marks calls to methods that do not seem to exist on an object.
This is most likely the result of a method being renamed without all references to it being renamed likewise.