Skip to content

Commit f02ceba

Browse files
committed
Update README.md
1 parent 8df57a6 commit f02ceba

File tree

1 file changed

+9
-43
lines changed

1 file changed

+9
-43
lines changed

README.md

Lines changed: 9 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,11 @@
1-
2-
[<img src="https://github-ads.s3.eu-central-1.amazonaws.com/support-ukraine.svg?t=1" />](https://supportukrainenow.org)
3-
4-
# This is my package laravel-blade-crawler-detect
1+
# Laravel Blade Crawler check
52

63
[![Latest Version on Packagist](https://img.shields.io/packagist/v/vlados/laravel-blade-crawler-detect.svg?style=flat-square)](https://packagist.org/packages/vlados/laravel-blade-crawler-detect)
74
[![GitHub Tests Action Status](https://img.shields.io/github/workflow/status/vlados/laravel-blade-crawler-detect/run-tests?label=tests)](https://github.com/vlados/laravel-blade-crawler-detect/actions?query=workflow%3Arun-tests+branch%3Amain)
85
[![GitHub Code Style Action Status](https://img.shields.io/github/workflow/status/vlados/laravel-blade-crawler-detect/Fix%20PHP%20code%20style%20issues?label=code%20style)](https://github.com/vlados/laravel-blade-crawler-detect/actions?query=workflow%3A"Fix+PHP+code+style+issues"+branch%3Amain)
96
[![Total Downloads](https://img.shields.io/packagist/dt/vlados/laravel-blade-crawler-detect.svg?style=flat-square)](https://packagist.org/packages/vlados/laravel-blade-crawler-detect)
107

11-
This is where your description should go. Limit it to a paragraph or two. Consider adding a small example.
12-
13-
## Support us
14-
15-
[<img src="https://github-ads.s3.eu-central-1.amazonaws.com/laravel-blade-crawler-detect.jpg?t=1" width="419px" />](https://spatie.be/github-ad-click/laravel-blade-crawler-detect)
16-
17-
We invest a lot of resources into creating [best in class open source packages](https://spatie.be/open-source). You can support us by [buying one of our paid products](https://spatie.be/open-source/support-us).
18-
19-
We highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using. You'll find our address on [our contact page](https://spatie.be/about-us). We publish all received postcards on [our virtual postcard wall](https://spatie.be/open-source/postcards).
8+
Simple package to add Blade directive @user to hide some parts of the blade from crawler bot
209

2110
## Installation
2211

@@ -26,37 +15,14 @@ You can install the package via composer:
2615
composer require vlados/laravel-blade-crawler-detect
2716
```
2817

29-
You can publish and run the migrations with:
30-
31-
```bash
32-
php artisan vendor:publish --tag="laravel-blade-crawler-detect-migrations"
33-
php artisan migrate
34-
```
35-
36-
You can publish the config file with:
37-
38-
```bash
39-
php artisan vendor:publish --tag="laravel-blade-crawler-detect-config"
40-
```
41-
42-
This is the contents of the published config file:
43-
44-
```php
45-
return [
46-
];
47-
```
48-
49-
Optionally, you can publish the views using
50-
51-
```bash
52-
php artisan vendor:publish --tag="laravel-blade-crawler-detect-views"
53-
```
54-
5518
## Usage
56-
57-
```php
58-
$laravelBladeCrawlerDetect = new Vlados\LaravelBladeCrawlerDetect();
59-
echo $laravelBladeCrawlerDetect->echoPhrase('Hello, Vlados!');
19+
Simply wrap your html with `@user ... code @enduser` to hide it from crawlers
20+
```html
21+
@user
22+
<style>
23+
24+
</style>
25+
@enduser
6026
```
6127

6228
## Testing

0 commit comments

Comments
 (0)