I did two days work to run laravel-websockets on my server. It will be nice to share with you.
Laravel WebSockets can be installed via composer:
const { reactive, effect,computed, ref, watch} = require('./reactive'); | |
const x = ref(0) | |
const y = ref(0) | |
const state = reactive({ | |
showSword: false, | |
message: "Hey young padawan!", | |
}); |
stages: | |
- deploy | |
production-deploy: | |
stage: deploy | |
environment: production | |
only: | |
- /^v.*$/ | |
script: | |
- which ssh-agent || (apt-get update -y && apt-get install openssh-client -y) |
<?php | |
namespace App\Support\Synthesizers; | |
use Spatie\LaravelData\Data; | |
use Livewire\Mechanisms\HandleComponents\Synthesizers\Synth; | |
class SpatieLaravelDataSynthesizer extends Synth | |
{ | |
public static string $key = 'spld'; |
<?php | |
namespace App\Models; | |
use Sushi\Sushi; | |
use Illuminate\Database\Eloquent\Model; | |
class Country extends Model | |
{ | |
use Sushi; |
import 'package:flutter/material.dart'; | |
class Statelessful<T> extends StatefulWidget { | |
final T Function() initialState; | |
final Widget Function( | |
BuildContext context, | |
T state, | |
void Function(T state) setState, | |
) builder; |
[ | |
{ | |
"name": "Afghanistan", | |
"flag": "🇦🇫", | |
"code": "AF", | |
"dial_code": "+93" | |
}, | |
{ | |
"name": "Åland Islands", | |
"flag": "🇦🇽", |
[ | |
{ | |
"state": "Adamawa", | |
"alias": "adamawa", | |
"lgas": [ | |
"Demsa", | |
"Fufure", | |
"Ganye", | |
"Gayuk", | |
"Gombi", |