FormRequest::getPrefixTable()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 0
cts 4
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 2
1
<?php namespace Arcanesoft\Auth\Http\Requests;
2
3
use Arcanedev\Support\Http\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
     |  Other Methods
15
     | -----------------------------------------------------------------
16
     */
17
18
    /**
19
     * Get the database connection.
20
     *
21
     * @return string
22
     */
23
    protected function getDbConnection()
24
    {
25
        return config('arcanesoft.auth.database.connection', null);
26
    }
27
28
    /**
29
     * Get the table's prefix.
30
     *
31
     * @return string
32
     */
33
    protected function getPrefixTable()
34
    {
35
        return config('arcanesoft.auth.database.prefix', 'auth_');
36
    }
37
}
38