Compare commits
No commits in common. "2a831578a9e6d1bf779c080009c954829b490376" and "435224ff7ccf0ed4a595463f8fa2b1a68ef1f21a" have entirely different histories.
2a831578a9
...
435224ff7c
@ -1,23 +0,0 @@
|
|||||||
name: Deploy to sewtopnotch.com
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- main
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
deploy:
|
|
||||||
runs-on: self-hosted
|
|
||||||
steps:
|
|
||||||
- name: Checkout Repository
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: Set Permissions
|
|
||||||
run: |
|
|
||||||
sudo chown -R www-data:www-data .
|
|
||||||
sudo chmod -R 755 .
|
|
||||||
|
|
||||||
- name: Move to Deployment Directory
|
|
||||||
run: |
|
|
||||||
sudo rm -rf /var/www/sewtopnotch.com
|
|
||||||
sudo mv $(pwd) /var/www/sewtopnotch.com
|
|
@ -3,15 +3,13 @@
|
|||||||
namespace App\Models;
|
namespace App\Models;
|
||||||
|
|
||||||
use Database\Factories\UserFactory;
|
use Database\Factories\UserFactory;
|
||||||
use Filament\Models\Contracts\FilamentUser;
|
|
||||||
use Filament\Models\Contracts\HasName;
|
use Filament\Models\Contracts\HasName;
|
||||||
use Filament\Panel;
|
|
||||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||||
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
||||||
use Illuminate\Foundation\Auth\User as Authenticatable;
|
use Illuminate\Foundation\Auth\User as Authenticatable;
|
||||||
use Illuminate\Notifications\Notifiable;
|
use Illuminate\Notifications\Notifiable;
|
||||||
|
|
||||||
class User extends Authenticatable implements FilamentUser, HasName
|
class User extends Authenticatable implements HasName
|
||||||
{
|
{
|
||||||
/** @use HasFactory<UserFactory> */
|
/** @use HasFactory<UserFactory> */
|
||||||
use HasFactory, Notifiable;
|
use HasFactory, Notifiable;
|
||||||
@ -50,11 +48,6 @@ protected function casts(): array
|
|||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
public function canAccessPanel(Panel $panel): bool
|
|
||||||
{
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function setIsAdminAttribute(bool $value): void
|
public function setIsAdminAttribute(bool $value): void
|
||||||
{
|
{
|
||||||
$this->attributes['is_admin'] = $value;
|
$this->attributes['is_admin'] = $value;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user