-
Hi, I have created a job model as below
and I have a screen named product where I am fetching the jobs like this
and I want to see how will this data look in the table layout so I am creating a table like this
I have added a product menu and calling this screen through a route. However, I am getting an error as below
Can someone please guide what am I missing here? |
Beta Was this translation helpful? Give feedback.
Answered by
tabuna
Feb 19, 2021
Replies: 1 comment 1 reply
-
Hi, add a trait for your model namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Orchid\Screen\AsSource;
class Job extends Model
{
use HasFactory, AsSource;
protected $connection = 'mysql2';
protected $fillable = [
'title',
'detail',
'budget',
'status'
];
} |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
shah180
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, add a trait for your model
Orchid\Screen\AsSource;
: