for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Platine\Framework\Migration\Seed;
use Platine\Framework\Migration\Seed\AbstractSeed;
class RolesPermissionsSeed extends AbstractSeed
{
public function run(): void
//Action when run the seed
$data = [
0 => [
'permission_id' => 1,
'role_id' => 1,
],
1 => [
'permission_id' => 2,
2 => [
'permission_id' => 3,
3 => [
'permission_id' => 4,
4 => [
'permission_id' => 5,
5 => [
'permission_id' => 6,
6 => [
'permission_id' => 7,
7 => [
'permission_id' => 8,
8 => [
'permission_id' => 9,
9 => [
'permission_id' => 10,
10 => [
'permission_id' => 11,
11 => [
'permission_id' => 12,
12 => [
'permission_id' => 13,
13 => [
'permission_id' => 14,
14 => [
'permission_id' => 15,
15 => [
'permission_id' => 16,
16 => [
'permission_id' => 17,
17 => [
'permission_id' => 18,
18 => [
'permission_id' => 19,
19 => [
'permission_id' => 20,
20 => [
'permission_id' => 21,
21 => [
'permission_id' => 22,
22 => [
'permission_id' => 23,
23 => [
'permission_id' => 24,
24 => [
'permission_id' => 25,
];
foreach ($data as $row) {
$this->insert($row)->into('permissions_roles');
}