����JFIF��x�x����'
| Server IP : 78.140.185.180 / Your IP : 216.73.216.170 Web Server : LiteSpeed System : Linux cpanel13.v.fozzy.com 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64 User : builderbox ( 1072) PHP Version : 7.3.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /proc/self/root/proc/self/root/home/builderbox/./www/common/Comments/ |
Upload File : |
<?php
namespace Common\Comments;
use App\User;
use Arr;
use Common\Auth\Roles\Role;
use Common\Billing\BillingPlan;
use Illuminate\Database\Eloquent\Factories\Factory;
class CommentFactory extends Factory
{
/**
* The name of the factory's corresponding model.
*
* @var string
*/
protected $model = Comment::class;
/**
* Define the model's default state.
*
* @return array
*/
public function definition()
{
return [
'content' => $this->faker->realText(),
'commentable_type' => Arr::random([
User::class,
BillingPlan::class,
Role::class,
]),
'commentable_id' => Arr::random([1, 2, 3, 4, 5]),
'user_id' => Arr::random([1, 2, 3, 4, 5]),
'parent_id' => Arr::random([1, null]),
];
}
}