Completed
Push — master ( 9b3fc3...96b827 )
by ARCANEDEV
06:21
created

FootersController::show()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 9
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 9
ccs 0
cts 7
cp 0
rs 9.6666
c 1
b 0
f 0
cc 1
eloc 5
nc 1
nop 1
crap 2
1
<?php namespace Arcanesoft\Seo\Http\Controllers\Front;
2
3
use App\Http\Controllers\Controller;
4
use Arcanesoft\Seo\Models\Footer;
5
6
/**
7
 * Class     FootersController
8
 *
9
 * @package  Arcanesoft\Seo\Http\Controllers\Front
10
 * @author   ARCANEDEV <[email protected]>
11
 */
12
class FootersController extends Controller
13
{
14
    /* -----------------------------------------------------------------
15
     |  Main Methods
16
     | -----------------------------------------------------------------
17
     */
18
    public function show(Footer $footer)
19
    {
20
        $footer->load(['seo']);
21
22
        $this->setTitle($footer->seo->title);
23
        $this->addBreadcrumb($footer->seo->title);
24
25
        return $this->view('seo::public.footer-page', compact('footer'));
26
    }
27
}
28