add policis
This commit is contained in:
1 parent
3971dcdb13
commit
eec5840a6b
4 files changed
+137
-3
No files matched your search
@@ -6,6 +6,8 @@ ssh -L 13306:127.0.0.1:3306 -p 58371 root@162.55.242.190
|
||||
# use remote db with mongodb
|
||||
ssh -L 27027:127.0.0.1:27017 -p 58371 root@162.55.242.190
|
||||
|
||||
a make:policy SofaScoreCategoryPolicy --model=SofaScoreCategory
|
||||
|
||||
importing
|
||||
|
||||
https://github.com/christophrumpel/laravel-import-million-rows
|
||||
|
||||
+3
-3
@@ -23,11 +23,11 @@ class SofaScoreCategoryResource extends Resource
|
||||
protected static ?int $navigationSort = 13;
|
||||
|
||||
protected static string|UnitEnum|null $navigationGroup = 'Statistiko';
|
||||
protected static ?string $recordTitleAttribute = 'Countries';
|
||||
protected static ?string $recordTitleAttribute = 'SS Countries';
|
||||
|
||||
protected static ?string $navigationLabel = 'Countries';
|
||||
protected static ?string $navigationLabel = 'SS Countries';
|
||||
|
||||
protected static ?string $modelLabel = 'Countries';
|
||||
protected static ?string $modelLabel = 'SS Countries';
|
||||
|
||||
public static function form(Schema $schema): Schema
|
||||
{
|
||||
|
||||
@@ -0,0 +1,66 @@
|
||||
<?php
|
||||
|
||||
namespace App\Policies;
|
||||
|
||||
use App\Models\SofaScoreCategory;
|
||||
use App\Models\User;
|
||||
use Illuminate\Auth\Access\Response;
|
||||
|
||||
class SofaScoreCategoryPolicy
|
||||
{
|
||||
/**
|
||||
* Determine whether the user can view any models.
|
||||
*/
|
||||
public function viewAny(User $user): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Determine whether the user can view the model.
|
||||
*/
|
||||
public function view(User $user, SofaScoreCategory $sofaScoreCategory): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Determine whether the user can create models.
|
||||
*/
|
||||
public function create(User $user): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Determine whether the user can update the model.
|
||||
*/
|
||||
public function update(User $user, SofaScoreCategory $sofaScoreCategory): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Determine whether the user can delete the model.
|
||||
*/
|
||||
public function delete(User $user, SofaScoreCategory $sofaScoreCategory): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Determine whether the user can restore the model.
|
||||
*/
|
||||
public function restore(User $user, SofaScoreCategory $sofaScoreCategory): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Determine whether the user can permanently delete the model.
|
||||
*/
|
||||
public function forceDelete(User $user, SofaScoreCategory $sofaScoreCategory): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,66 @@
|
||||
<?php
|
||||
|
||||
namespace App\Policies;
|
||||
|
||||
use App\Models\StatistikoConfig;
|
||||
use App\Models\User;
|
||||
use Illuminate\Auth\Access\Response;
|
||||
|
||||
class StatistikoConfigPolicy
|
||||
{
|
||||
/**
|
||||
* Determine whether the user can view any models.
|
||||
*/
|
||||
public function viewAny(User $user): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Determine whether the user can view the model.
|
||||
*/
|
||||
public function view(User $user, StatistikoConfig $statistikoConfig): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Determine whether the user can create models.
|
||||
*/
|
||||
public function create(User $user): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Determine whether the user can update the model.
|
||||
*/
|
||||
public function update(User $user, StatistikoConfig $statistikoConfig): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Determine whether the user can delete the model.
|
||||
*/
|
||||
public function delete(User $user, StatistikoConfig $statistikoConfig): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Determine whether the user can restore the model.
|
||||
*/
|
||||
public function restore(User $user, StatistikoConfig $statistikoConfig): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Determine whether the user can permanently delete the model.
|
||||
*/
|
||||
public function forceDelete(User $user, StatistikoConfig $statistikoConfig): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user