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
@extends('layout.layout') | |
@section('content') | |
<form action="{{route('register.post')}}" method="POST"> | |
@csrf | |
@error('success') | |
<div class="success"> | |
{{$message}} | |
</div> |
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
@extends('layout.layout') | |
@section('content') | |
<form action="{{route('login.post')}}" method="POST"> | |
@csrf | |
@error('success') | |
<div class="success"> | |
{{$message}} | |
</div> | |
<br><br> |
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 App\Http\Middleware; | |
use App\Traits\LockEventTrait; | |
use Closure; | |
use Illuminate\Http\Request; | |
class LockRouteMiddleware | |
{ | |
use LockEventTrait; | |
/** |
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 App\Traits; | |
use Illuminate\Cache\FileStore; | |
use Illuminate\Filesystem\Filesystem; | |
use Illuminate\Support\Facades\Cache; | |
trait LockEventTrait | |
{ | |
protected FileStore $file_cache; | |
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
server { | |
listen 80; | |
server_name ws.example.com; | |
# For ssl support add correct path here | |
#ssl_certificate /path/to/www.example.com.cert; | |
#ssl_certificate_key /path/to/www.example.com.key; | |
add_header X-Frame-Options "SAMEORIGIN"; | |
add_header X-Content-Type-Options "nosniff"; |
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 BeyondCode\LaravelWebSockets\Dashboard\Http\Middleware\Authorize; | |
return [ | |
/* | |
* Set a custom dashboard configuration | |
*/ | |
'dashboard' => [ |
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
<script> | |
const public_channel = '{{config('app.name')}}.Public'; | |
Echo.channel(public_channel) | |
.listen('OrderShipmentStatusUpdated', (data) => { | |
console.log(data) | |
}); | |
</script> | |
@logged_in |
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 Illuminate\Support\Facades\Broadcast; | |
/* | |
|-------------------------------------------------------------------------- | |
| Broadcast Channels | |
|-------------------------------------------------------------------------- | |
| | |
| Here you may register all of the event broadcasting channels that your |
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
<VirtualHost _default_:443> | |
ServerName example.com | |
ServerAlias app1.example.com app2.example.com | |
ServerAdmin [email protected] | |
DocumentRoot /var/www/public_html/example.com/public | |
<Directory /var/www/public_html/example.com> | |
AllowOverride All | |
</Directory> | |
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
server { | |
listen 80; | |
server_name example.com app1.example.com app2.example.com; | |
# App root path here | |
root /srv/example.com/public; | |
# For ssl support add correct path here | |
#ssl_certificate /path/to/www.example.com.cert; | |
#ssl_certificate_key /path/to/www.example.com.key; |