• This project
    • Loading...
  • Sign in

Yashvant Singh / laravel--

Imgpsh fullsize
Go to a project
Toggle navigation Toggle navigation pinning
  • Projects
  • Groups
  • Snippets
  • Help
  • Project
  • Activity
  • Repository
  • Pipelines
  • Graphs
  • Issues 0
  • Merge Requests 0
  • Wiki
  • Snippets
  • Network
  • Create a new issue
  • Builds
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Network
  • Compare
  • Branches
  • Tags
Switch branch/tag
  • laravel--
  • database
  • factories
  • CommentFactory.php
  • Alexey Mezenin's avatar
    Init commit · 7f37d09b
    7f37d09b
    Alexey Mezenin authored 2021-11-01 20:17:28 +0200
CommentFactory.php 381 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
<?php

namespace Database\Factories;

use App\Models\Article;
use App\Models\User;
use Illuminate\Database\Eloquent\Factories\Factory;

class CommentFactory extends Factory
{
    public function definition()
    {
        return [
            'user_id' => User::factory(),
            'article_id' => Article::factory(),
            'body' => $this->faker->text
        ];
    }
}