1
|
|
|
<?php |
|
|
|
|
2
|
|
|
|
3
|
|
|
/** |
|
|
|
|
4
|
|
|
* Google Adsense Ads for Laravel. |
5
|
|
|
* |
6
|
|
|
* Package for easily including Google Adsense Ad units |
7
|
|
|
* in Laravel and Lumen. |
8
|
|
|
* |
9
|
|
|
* @developer Martin Butt <https://www.martinbutt.com/> |
|
|
|
|
10
|
|
|
* |
11
|
|
|
* @copyright Copyright (c) 2021 Martin Butt |
|
|
|
|
12
|
|
|
* @license MIT |
|
|
|
|
13
|
|
|
* |
14
|
|
|
* Copyright (c) 2016 Galen Han |
15
|
|
|
* Copyright (c) 2019 Crypto Technology srl |
16
|
|
|
* Copyright (c) 2021 Martin Butt |
17
|
|
|
* |
18
|
|
|
* Permission is hereby granted, free of charge, to any person obtaining a copy of |
|
|
|
|
19
|
|
|
* this software and associated documentation files (the "Software"), to deal in |
20
|
|
|
* the Software without restriction, including without limitation the rights to |
21
|
|
|
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of |
|
|
|
|
22
|
|
|
* the Software, and to permit persons to whom the Software is furnished to do so, |
|
|
|
|
23
|
|
|
* subject to the following conditions: |
24
|
|
|
* |
25
|
|
|
* The above copyright notice and this permission notice shall be included in all |
|
|
|
|
26
|
|
|
* copies or substantial portions of the Software. |
27
|
|
|
* |
28
|
|
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
29
|
|
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS |
|
|
|
|
30
|
|
|
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR |
|
|
|
|
31
|
|
|
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER |
|
|
|
|
32
|
|
|
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN |
33
|
|
|
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
34
|
|
|
*/ |
|
|
|
|
35
|
|
|
|
36
|
|
|
declare(strict_types=1); |
37
|
|
|
|
38
|
|
|
namespace MartinButt\Laravel\Adsense\Facades; |
39
|
|
|
|
40
|
|
|
use Illuminate\Support\Facades\Facade; |
41
|
|
|
|
42
|
|
|
/** |
43
|
|
|
* Class AdsenseFacade. |
44
|
|
|
* |
45
|
|
|
* @method static \Illuminate\View\View|\Illuminate\Contracts\View\Factory ads(string $ads) |
|
|
|
|
46
|
|
|
* @method static \Illuminate\View\View|\Illuminate\Contracts\View\Factory javascript() |
|
|
|
|
47
|
|
|
* |
48
|
|
|
* @see \Illuminate\Support\Facades\Facade |
|
|
|
|
49
|
|
|
*/ |
|
|
|
|
50
|
|
|
final class AdsenseFacade extends Facade |
51
|
|
|
{ |
|
|
|
|
52
|
|
|
/** |
|
|
|
|
53
|
|
|
* {@inheritdoc} |
54
|
|
|
*/ |
|
|
|
|
55
|
1 |
|
protected static function getFacadeAccessor() |
|
|
|
|
56
|
|
|
{ |
|
|
|
|
57
|
1 |
|
return 'adsense'; |
|
|
|
|
58
|
|
|
} |
|
|
|
|
59
|
|
|
} |
|
|
|
|
60
|
|
|
|