mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-14 00:04:24 +00:00
New stuff pertaining to the import procedure and user registration.
This commit is contained in:
@@ -1,8 +1,16 @@
|
||||
<?php
|
||||
|
||||
|
||||
class Component extends Eloquent
|
||||
class Component extends Elegant
|
||||
{
|
||||
public static $rules
|
||||
= [
|
||||
'user_id' => 'exists:users,id|required',
|
||||
'name' => 'required|between:1,255',
|
||||
'component_type_id' => 'required|exists:component_types,id'
|
||||
];
|
||||
|
||||
|
||||
public function componentType()
|
||||
{
|
||||
return $this->belongsTo('ComponentType');
|
||||
|
Reference in New Issue
Block a user