composer update && add warning text

This commit is contained in:
2024-11-21 23:16:36 +05:00
parent 8155038df8
commit 6e8f30a1b9
16 changed files with 695 additions and 450 deletions

View File

@@ -5,9 +5,7 @@ namespace App\Nova\Resources;
use App\Models\CurrencyRate as ModelsCurrencyRate;
use App\Nova\Resource;
use App\Nova\Resources\CurrencyRate\CurrencyRateAuth;
use Illuminate\Auth\Access\AuthorizationException;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Gate;
use Laravel\Nova\Fields\ID;
use Laravel\Nova\Fields\Select;
use Laravel\Nova\Fields\Text;

View File

@@ -16,7 +16,7 @@ trait CurrencyRateAuth
return;
}
throw new AuthorizationException();
throw new AuthorizationException;
}
/** Edit button */
@@ -44,7 +44,7 @@ trait CurrencyRateAuth
return;
}
throw new AuthorizationException();
throw new AuthorizationException;
}
/** Delete button */
@@ -68,7 +68,7 @@ trait CurrencyRateAuth
return;
}
throw new AuthorizationException();
throw new AuthorizationException;
}
/** Force delete */

View File

@@ -0,0 +1,74 @@
<?php
namespace App\Nova\Resources;
use App\Nova\Resource;
use Illuminate\Http\Request;
use Laravel\Nova\Fields\ID;
use Laravel\Nova\Fields\Text;
use Laravel\Nova\Fields\Trix;
use Laravel\Nova\Http\Requests\NovaRequest;
class NovaVisaMasterSetting extends Resource
{
/**
* The model the resource corresponds to.
*
* @var class-string<\App\Models\Resources\NovaVisaMasterSetting>
*/
public static $model = \App\Modules\VisaMasterSettings\Models\VisaMasterSettings::class;
/**
* The single value that should be used to represent the resource when being displayed.
*
* @var string
*/
public static $title = 'name';
/**
* The columns that should be searched.
*
* @var array<int, string>
*/
public static $search = [
'name', 'value',
];
/**
* Get the displayable label of the resource.
*/
public static function label(): string
{
return __('Visa Master Settings');
}
/**
* Get the displayable singular label of the resource.
*/
public static function singularLabel(): string
{
return __('Visa Master Setting');
}
/**
* Get the fields displayed by the resource.
*
* @param \Laravel\Nova\Http\Requests\NovaRequest $request
* @return array<int, \Laravel\Nova\Fields\FieldElement|\Laravel\Nova\Panel>
*/
public function fields(NovaRequest $request): array
{
return [
ID::make('id')->sortable(),
Text::make('Name')
->rules('required', 'string', 'max:255'),
Text::make('Display name', 'display_name')
->rules('required', 'string', 'max:255'),
Text::make('Value')
->rules('required', 'string', 'max:255'),
];
}
}

View File

@@ -4,7 +4,6 @@ namespace App\Nova\Resources\Payment;
use App\Nova\Actions\CheckOnlinePayment;
use App\Nova\Resource;
use App\Repos\Order\OrderRepo;
use App\Repos\Payment\OnlinePaymentRepo;
use Illuminate\Http\Request;
use Laravel\Nova\Fields\Badge;