Completed
Pull Request — master (#21)
by ARCANEDEV
05:07
created

FormRequest::getDbConnection()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 4
ccs 0
cts 4
cp 0
rs 10
c 1
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
crap 2
1
<?php namespace Arcanesoft\Auth\Http\Requests;
2
3
use Arcanedev\Support\Bases\FormRequest as BaseFormRequest;
4
5
/**
6
 * Class     FormRequest
7
 *
8
 * @package  Arcanesoft\Auth\Http\Requests
9
 * @author   ARCANEDEV <[email protected]>
10
 */
11
abstract class FormRequest extends BaseFormRequest
12
{
13
    /* -----------------------------------------------------------------
14
     |  Properties
15
     | -----------------------------------------------------------------
16
     */
17
    /**
18
     * The message format.
19
     *
20
     * @var string
21
     */
22
    protected $errorsFormat = '<i class="fa fa-fw fa-exclamation-circle"></i> :message';
23
24
    /* -----------------------------------------------------------------
25
     |  Other Methods
26
     | -----------------------------------------------------------------
27
     */
28
    /**
29
     * Get the database connection.
30
     *
31
     * @return string
32
     */
33
    protected function getDbConnection()
34
    {
35
        return config('arcanesoft.auth.database.connection', null);
36
    }
37
38
    /**
39
     * Get the table's prefix.
40
     *
41
     * @return string
42
     */
43
    protected function getPrefixTable()
44
    {
45
        return config('arcanesoft.auth.database.prefix', 'auth_');
46
    }
47
}
48