Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11,562 changes: 5,848 additions & 5,714 deletions _ide_helper.php

Large diffs are not rendered by default.

11 changes: 7 additions & 4 deletions _ide_helper_models.php
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,7 @@ class Role extends \Eloquent {}
* @property string $firstname
* @property string $lastname
* @property string $email
* @property string $username
* @property string $phone
* @property int $is_male
* @property string $birthdate
Expand All @@ -337,21 +338,22 @@ class Role extends \Eloquent {}
* @property-read int|null $notifications_count
* @property-read \Illuminate\Database\Eloquent\Collection|\App\Models\Order[] $order
* @property-read int|null $order_count
* @property-read \Illuminate\Database\Eloquent\Collection|\App\Models\Permission[] $permission
* @property-read int|null $permission_count
* @property-read \Illuminate\Database\Eloquent\Collection|\App\Models\Permission[] $permissions
* @property-read int|null $permissions_count
* @property-read \Illuminate\Database\Eloquent\Collection|\App\Models\Product[] $product
* @property-read int|null $product_count
* @property-read \Illuminate\Database\Eloquent\Collection|\willvincent\Rateable\Rating[] $ratings
* @property-read int|null $ratings_count
* @property-read \Illuminate\Database\Eloquent\Collection|\App\Models\Role[] $role
* @property-read int|null $role_count
* @property-read \Illuminate\Database\Eloquent\Collection|\App\Models\Role[] $roles
* @property-read int|null $roles_count
* @property-read \Illuminate\Database\Eloquent\Collection|\Laravel\Sanctum\PersonalAccessToken[] $tokens
* @property-read int|null $tokens_count
* @method static \Database\Factories\UserFactory factory(...$parameters)
* @method static \Illuminate\Database\Eloquent\Builder|User newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder|User newQuery()
* @method static \Illuminate\Database\Query\Builder|User onlyTrashed()
* @method static \Illuminate\Database\Eloquent\Builder|User query()
* @method static \Illuminate\Database\Eloquent\Builder|User role($roleName)
* @method static \Illuminate\Database\Eloquent\Builder|User whereBirthdate($value)
* @method static \Illuminate\Database\Eloquent\Builder|User whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|User whereDeletedAt($value)
Expand All @@ -365,6 +367,7 @@ class Role extends \Eloquent {}
* @method static \Illuminate\Database\Eloquent\Builder|User wherePhone($value)
* @method static \Illuminate\Database\Eloquent\Builder|User whereRememberToken($value)
* @method static \Illuminate\Database\Eloquent\Builder|User whereUpdatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|User whereUsername($value)
* @method static \Illuminate\Database\Query\Builder|User withTrashed()
* @method static \Illuminate\Database\Query\Builder|User withoutTrashed()
*/
Expand Down
1 change: 1 addition & 0 deletions app/Http/Controllers/Auth/RegisterController.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ protected function create(array $data)
'firstname' => $data['firstname'],
'lastname' => $data['lastname'],
'email' => $data['email'],
'username' => $data['firstname'].' '.$data['lastname'],
'phone' => $data['phone'],
'is_male' => $data['gender'],
'birthdate' => $data['birthdate'],
Expand Down
42 changes: 0 additions & 42 deletions app/Http/Controllers/SettingsController.php

This file was deleted.

35 changes: 0 additions & 35 deletions app/Http/Requests/GeneralSettingsRequest.php

This file was deleted.

1 change: 1 addition & 0 deletions app/Models/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ class User extends Authenticatable
'firstname',
'lastname',
'email',
'username',
'phone',
'is_male',
'birthdate',
Expand Down
94 changes: 94 additions & 0 deletions app/Policies/CountryPolicy.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
<?php

namespace App\Policies;

use App\Models\Country;
use App\Models\User;
use Illuminate\Auth\Access\HandlesAuthorization;

class CountryPolicy
{
use HandlesAuthorization;

/**
* Determine whether the user can view any models.
*
* @param \App\Models\User $user
* @return \Illuminate\Auth\Access\Response|bool
*/
public function viewAny(User $user)
{
//
}

/**
* Determine whether the user can view the model.
*
* @param \App\Models\User $user
* @param \App\Models\Country $country
* @return \Illuminate\Auth\Access\Response|bool
*/
public function view(User $user, Country $country)
{
//
}

/**
* Determine whether the user can create models.
*
* @param \App\Models\User $user
* @return \Illuminate\Auth\Access\Response|bool
*/
public function create(User $user)
{
//
}

/**
* Determine whether the user can update the model.
*
* @param \App\Models\User $user
* @param \App\Models\Country $country
* @return \Illuminate\Auth\Access\Response|bool
*/
public function update(User $user, Country $country)
{
//
}

/**
* Determine whether the user can delete the model.
*
* @param \App\Models\User $user
* @param \App\Models\Country $country
* @return \Illuminate\Auth\Access\Response|bool
*/
public function delete(User $user, Country $country)
{
//
}

/**
* Determine whether the user can restore the model.
*
* @param \App\Models\User $user
* @param \App\Models\Country $country
* @return \Illuminate\Auth\Access\Response|bool
*/
public function restore(User $user, Country $country)
{
//
}

/**
* Determine whether the user can permanently delete the model.
*
* @param \App\Models\User $user
* @param \App\Models\Country $country
* @return \Illuminate\Auth\Access\Response|bool
*/
public function forceDelete(User $user, Country $country)
{
//
}
}
4 changes: 4 additions & 0 deletions app/Providers/AuthServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
namespace App\Providers;

// use Illuminate\Support\Facades\Gate;

use App\Models\Country;
use App\Policies\CountryPolicy;
use Illuminate\Foundation\Support\Providers\AuthServiceProvider as ServiceProvider;

class AuthServiceProvider extends ServiceProvider
Expand All @@ -14,6 +17,7 @@ class AuthServiceProvider extends ServiceProvider
*/
protected $policies = [
// 'App\Models\Model' => 'App\Policies\ModelPolicy',
Country::class => CountryPolicy::class,
];

/**
Expand Down
31 changes: 0 additions & 31 deletions app/Settings/GeneralSettings.php

This file was deleted.

1 change: 0 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
"laraveldaily/larastarters": "dev-add-vite-support-to-bootstrap-themes",
"livewire/livewire": "^2.10",
"spatie/laravel-medialibrary": "^10.4",
"spatie/laravel-settings": "^2.4",
"spatie/laravel-translatable": "^6.0",
"willvincent/laravel-rateable": "^3.0"
},
Expand Down
Loading