Skip to content

Commit

Permalink
rework stub
Browse files Browse the repository at this point in the history
  • Loading branch information
iamgergo committed Jan 24, 2024
1 parent 9468447 commit 5a1d37d
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions stubs/UserResource.stub
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,32 @@ namespace App\Root\Resources;
use Cone\Root\Fields\Email;
use Cone\Root\Fields\ID;
use Cone\Root\Fields\Text;
use Cone\Root\Models\User;
use Cone\Root\Resources\Resource;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Http\Request;
use Illuminate\Validation\Rule;

class UserResource extends Resource
{
/**
* The model class.
*/
protected string $model = User::class;

/**
* The icon for the resource.
*/
protected string $icon = 'users';

/**
* Get the model for the resource.
*/
public function getModel(): string
{
return User::getProxiedClass();
}

/**
* Define the fields.
*/
Expand Down

0 comments on commit 5a1d37d

Please sign in to comment.