Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Walter Felipe
pad-upe
Commits
2dde2092
Commit
2dde2092
authored
May 22, 2022
by
Abraão Barbosa
Browse files
Update Seed PAD
parent
e119449a
Changes
2
Hide whitespace changes
Inline
Side-by-side
app/Models/Unidade.php
View file @
2dde2092
...
@@ -70,7 +70,7 @@ class Unidade extends Model
...
@@ -70,7 +70,7 @@ class Unidade extends Model
public
static
function
validator
(
$attributes
,
$rule_password
=
false
)
{
public
static
function
validator
(
$attributes
,
$rule_password
=
false
)
{
$rules
=
[
$rules
=
[
'name'
=>
[
'min:
8
'
,
'max:255'
],
'name'
=>
[
'min:
3
'
,
'max:255'
],
];
];
$messages
=
[
$messages
=
[
...
...
database/seeders/PADSeeder.php
View file @
2dde2092
...
@@ -19,7 +19,7 @@ class PADSeeder extends Seeder
...
@@ -19,7 +19,7 @@ class PADSeeder extends Seeder
foreach
(
$users
as
$user
)
{
foreach
(
$users
as
$user
)
{
PAD
::
create
([
PAD
::
create
([
'user_id'
=>
$user
->
id
,
'user_id'
=>
$user
->
id
,
'licenca_de_acor_legais'
=>
null
'licenca_de_acor_legais'
=>
""
]);
]);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment