This commit is contained in:
Mekan1206
2026-04-30 20:01:23 +05:00
parent a07c764dfe
commit f772562376
4 changed files with 1 additions and 292 deletions

View File

@@ -9,7 +9,6 @@
"license": "MIT",
"require": {
"php": "^8.1",
"basement-chat/basement-chat": "^1.1",
"blendbyte/nova-attach-many": "^1.5",
"cyrildewit/eloquent-viewable": "^7.0",
"digital-creative/column-toggler": "^0.1.1",

157
composer.lock generated
View File

@@ -4,87 +4,8 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
"content-hash": "3054a5ce4c002f94010bfe9c6e4cdffe",
"content-hash": "c3d8b52e784d7d4c26304df760806ed2",
"packages": [
{
"name": "basement-chat/basement-chat",
"version": "v1.1.1",
"source": {
"type": "git",
"url": "https://github.com/basement-chat/basement-chat.git",
"reference": "8d973333a76551feab407c1f92f37ad794e12f68"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/basement-chat/basement-chat/zipball/8d973333a76551feab407c1f92f37ad794e12f68",
"reference": "8d973333a76551feab407c1f92f37ad794e12f68",
"shasum": ""
},
"require": {
"laravel/framework": "^9.0.0 | ^10.0.0",
"laravel/sanctum": "^2.14.0 | ^3.0.1",
"php": "^8.0",
"spatie/enum": "^3.13.0",
"spatie/laravel-package-tools": "^1.13.6"
},
"require-dev": {
"beyondcode/laravel-dump-server": "^1.8.0",
"laravel/pint": "^1.2.0",
"nunomaduro/collision": "^6.4.0",
"nunomaduro/larastan": "^2.2.5",
"nunomaduro/phpinsights": "^2.6.1",
"orchestra/canvas": "^7.5.0",
"orchestra/testbench": "^7.24.1",
"orchestra/testbench-dusk": "^7.25.1",
"phpstan/phpstan-deprecation-rules": "^1.0.0",
"phpstan/phpstan-phpunit": "^1.1.1",
"phpunit/phpunit": "^9.5.25",
"pusher/pusher-php-server": "^7.2.1",
"squizlabs/php_codesniffer": "^3.7.1"
},
"type": "library",
"extra": {
"laravel": {
"aliases": {
"Basement": "BasementChat\\Basement\\Facades\\Basement"
},
"providers": [
"BasementChat\\Basement\\BasementServiceProvider"
]
}
},
"autoload": {
"psr-4": {
"BasementChat\\Basement\\": "src",
"BasementChat\\Basement\\Database\\Factories\\": "database/factories"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Yusuf T.",
"email": "dev.yusuftaufiq@gmail.com"
}
],
"description": "Add a real-time chat widget to your Laravel application.",
"homepage": "https://github.com/basement-chat/basement-chat",
"keywords": [
"basement",
"chat",
"laravel",
"php",
"realtime",
"websocket"
],
"support": {
"issues": "https://github.com/basement-chat/basement-chat/issues",
"source": "https://github.com/basement-chat/basement-chat/tree/v1.1.1"
},
"time": "2023-06-03T09:37:47+00:00"
},
{
"name": "blendbyte/nova-attach-many",
"version": "1.7.0",
@@ -6267,82 +6188,6 @@
],
"time": "2025-08-25T11:46:57+00:00"
},
{
"name": "spatie/enum",
"version": "3.13.0",
"source": {
"type": "git",
"url": "https://github.com/spatie/enum.git",
"reference": "f1a0f464ba909491a53e60a955ce84ad7cd93a2c"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/spatie/enum/zipball/f1a0f464ba909491a53e60a955ce84ad7cd93a2c",
"reference": "f1a0f464ba909491a53e60a955ce84ad7cd93a2c",
"shasum": ""
},
"require": {
"ext-json": "*",
"php": "^8.0"
},
"require-dev": {
"fakerphp/faker": "^1.9.1",
"larapack/dd": "^1.1",
"phpunit/phpunit": "^9.0",
"vimeo/psalm": "^4.3"
},
"suggest": {
"fakerphp/faker": "To use the enum faker provider",
"phpunit/phpunit": "To use the enum assertions"
},
"type": "library",
"autoload": {
"psr-4": {
"Spatie\\Enum\\": "src"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Brent Roose",
"email": "brent@spatie.be",
"homepage": "https://spatie.be",
"role": "Developer"
},
{
"name": "Tom Witkowski",
"email": "dev@gummibeer.de",
"homepage": "https://gummibeer.de",
"role": "Developer"
}
],
"description": "PHP Enums",
"homepage": "https://github.com/spatie/enum",
"keywords": [
"enum",
"enumerable",
"spatie"
],
"support": {
"docs": "https://docs.spatie.be/enum",
"issues": "https://github.com/spatie/enum/issues",
"source": "https://github.com/spatie/enum"
},
"funding": [
{
"url": "https://spatie.be/open-source/support-us",
"type": "custom"
},
{
"url": "https://github.com/spatie",
"type": "github"
}
],
"time": "2022-04-22T08:51:55+00:00"
},
{
"name": "spatie/image",
"version": "2.2.7",

View File

@@ -1,131 +0,0 @@
<?php
declare(strict_types=1);
use App\Models\User;
use BasementChat\Basement\Enums\AvatarStyle;
use BasementChat\Basement\Enums\ChatBoxPosition;
use Illuminate\Routing\Middleware\SubstituteBindings;
use Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful;
return [
/*
|--------------------------------------------------------------------------
| Laravel Echo Broadcast Options
|--------------------------------------------------------------------------
|
| Here is the configuration where you can set the options used on client-
| side Laravel Echo. For server-side broadcasting options, please refer to
| /config/broadcasting.php file. The "default" value below should be
| available as an array key inside "connections".
|
*/
'broadcaster' => [
'default' => env('BASEMENT_BROADCAST_DRIVER', 'null'),
'connections' => [
'pusher' => [
'broadcaster' => 'pusher',
'key' => env('PUSHER_APP_KEY'),
'cluster' => env('PUSHER_APP_CLUSTER'),
'useTLS' => true,
],
'ably' => [
'broadcaster' => 'pusher',
'key' => env('ABLY_PUBLIC_KEY'),
'wsHost' => 'realtime-pusher.ably.io',
'wsPort' => 443,
'disableStats' => true,
'encrypted' => true,
],
'laravel-websockets' => [
'broadcaster' => 'pusher',
'key' => env('PUSHER_APP_KEY'),
'wsHost' => '127.0.0.1',
'wsPort' => 6001,
'forceTLS' => false,
'disableStats' => true,
],
'soketi' => [
'broadcaster' => 'pusher',
'key' => env('PUSHER_APP_KEY'),
'wsHost' => env('PUSHER_HOST'),
'wsPort' => env('PUSHER_PORT'),
'wssPort' => env('PUSHER_PORT'),
'forceTLS' => false,
'encrypted' => true,
'disableStats' => true,
'enabledTransports' => ['ws', 'wss'],
],
'null' => [
],
],
],
/*
|--------------------------------------------------------------------------
| Chat Box Widget Position
|--------------------------------------------------------------------------
|
| Configure where you want to place the chat box widget view. If you have
| advanced configuration, feel free to publish the view and modify it as
| you wish.
|
*/
'chat_box_widget_position' => (string) ChatBoxPosition::bottomRight(),
/*
|--------------------------------------------------------------------------
| User Model
|--------------------------------------------------------------------------
|
| Specify the namespace and class used to get the user model instance. The
| given class must extend the "Illuminate\Foundation\Auth\User" and
| implement the "BasementChat\Basement\Contracts\User".
|
*/
'user_model' => User::class,
/*
|--------------------------------------------------------------------------
| Avatar
|--------------------------------------------------------------------------
|
| You can change the avatar's appearance in the contact list according to
| the styles available in https://avatars.dicebear.com/. If you have other
| avatar preferences (such as the user's real photo uploaded on your site),
| you can override the "getAvatarAttribute" accessor function in your user
| model.
|
*/
'avatar' => [
'style' => (string) AvatarStyle::micah(),
'options' => [
'b' => '%233584e4',
'size' => 64,
],
],
/*
|--------------------------------------------------------------------------
| Middleware
|--------------------------------------------------------------------------
|
| Basement frontend uses API calls to get contacts and private messages
| data. Here you can configure what middleware should be passed when
| processing requests.
|
*/
'middleware' => [
EnsureFrontendRequestsAreStateful::class,
'throttle:api',
SubstituteBindings::class,
'auth:sanctum',
],
];

View File

@@ -3,9 +3,5 @@
use App\Http\Controllers\OnlinePaymentController;
use Illuminate\Support\Facades\Route;
Route::get('/', function () {
return view('test');
});
Route::view('/login', 'wip')->name('login');
Route::get('api/online-payment-store', [OnlinePaymentController::class, 'index'])->name('online-payment-store');