Skip to content

Commit 2fbd9ed

Browse files
author
SteeinGit
committed
Removed support "Laravel"
1 parent d88e35a commit 2fbd9ed

File tree

3 files changed

+2
-121
lines changed

3 files changed

+2
-121
lines changed

README.md

Lines changed: 2 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Generator robots.txt
2-
Generator of the text file "robots.txt" with support "Laravel"
2+
Generator of the text file "robots.txt"
33

44
***The robots.txt*** file is a text file located in the root directory of the site, in which special instructions for search robots are written. These instructions may prohibit some sections or pages on the site from being indexed, indicate the correct "mirroring" of the domain, recommend the search robot to observe a certain time interval between downloading documents from the server, etc.
55

@@ -13,7 +13,7 @@ Or add the following to your ```composer.json``` in the require section and then
1313
```json
1414
{
1515
"require": {
16-
"steein/robots": "dev-master"
16+
"steein/robots": "1.4"
1717
}
1818
}
1919
```
@@ -45,55 +45,6 @@ Robots::getInstance()
4545

4646
```
4747

48-
### support laravel
49-
50-
Once installed via Composer you need to add the service provider.
51-
Do this by adding the following to the 'providers' section of the application config ```(usually config/app.php)```:
52-
53-
```php
54-
55-
// config/app.php
56-
'providers' => [
57-
...
58-
Steein\Robots\Laravel\RobotsServiceProvider::class,
59-
...
60-
];
61-
```
62-
63-
This package also comes with a facade, which provides an easy way to call the the class.
64-
65-
```php
66-
// config/app.php
67-
'aliases' => [
68-
...
69-
'Robots' => Steein\Robots\Laravel\RobotsFacade::class,
70-
...
71-
];
72-
```
73-
74-
The quickest way to use Robots is to just setup a callback-style route for robots.txt in your ```routes/web.php``` file.
75-
76-
```php
77-
Route::get('robots.txt', function() {
78-
79-
$robots = RobotsFacade::host("www.steein.ru")
80-
->userAgent("*")
81-
->allow("one","two")
82-
->disallow("one","two","three")
83-
->each(function (RobotsInterface $robots) {
84-
$robots->userAgent("Bind")
85-
->comment("Comment Bind")
86-
->spacer()
87-
->allow("testing");
88-
})->render();
89-
90-
91-
return Response::make($robots, 200, ['Content-Type' => 'text/plain']);
92-
});
93-
```
94-
95-
96-
9748
## Testing
9849

9950
```

src/Laravel/RobotsFacade.php

Lines changed: 0 additions & 32 deletions
This file was deleted.

src/Laravel/RobotsServiceProvider.php

Lines changed: 0 additions & 38 deletions
This file was deleted.

0 commit comments

Comments
 (0)