|
1 |
| -# Laravel Eloquent spatial extension |
2 |
| - |
3 |
| -[](https://packagist.org/packages/matanyadaev/laravel-eloquent-spatial) |
4 |
| -[](https://github.com/matanyadaev/laravel-eloquent-spatial/actions?query=workflow%3ATests+branch%3Amaster) |
5 |
| -[](https://packagist.org/packages/matanyadaev/laravel-eloquent-spatial) |
6 |
| - |
7 |
| - |
8 |
| -This is where your description should go. Limit it to a paragraph or two. Consider adding a small example. |
9 |
| - |
10 |
| -## Support us |
11 |
| - |
12 |
| -[<img src="https://github-ads.s3.eu-central-1.amazonaws.com/package-laravel-eloquent-spatial-laravel.jpg?t=1" width="419px" />](https://spatie.be/github-ad-click/package-laravel-eloquent-spatial-laravel) |
13 |
| - |
14 |
| -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). |
15 |
| - |
16 |
| -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). |
17 |
| - |
18 |
| -## Installation |
19 |
| - |
20 |
| -You can install the package via composer: |
21 |
| - |
22 |
| -```bash |
23 |
| -composer require matanyadaev/laravel-eloquent-spatial |
24 |
| -``` |
25 |
| - |
26 |
| -You can publish and run the migrations with: |
27 |
| - |
28 |
| -```bash |
29 |
| -php artisan vendor:publish --provider="MatanYadaev\LaravelEloquentSpatial\LaravelEloquentSpatialServiceProvider" --tag="migrations" |
30 |
| -php artisan migrate |
31 |
| -``` |
32 |
| - |
33 |
| -You can publish the config file with: |
34 |
| -```bash |
35 |
| -php artisan vendor:publish --provider="MatanYadaev\LaravelEloquentSpatial\LaravelEloquentSpatialServiceProvider" --tag="config" |
36 |
| -``` |
37 |
| - |
38 |
| -This is the contents of the published config file: |
39 |
| - |
40 |
| -```php |
41 |
| -return [ |
42 |
| -]; |
43 |
| -``` |
44 |
| - |
45 |
| -## Usage |
46 |
| - |
47 |
| -```php |
48 |
| -$laravel-eloquent-spatial = new MatanYadaev\LaravelEloquentSpatial(); |
49 |
| -echo $laravel-eloquent-spatial->echoPhrase('Hello, MatanYadaev!'); |
50 |
| -``` |
51 |
| - |
52 |
| -## Testing |
53 |
| - |
54 |
| -```bash |
55 |
| -composer test |
56 |
| -``` |
57 |
| - |
58 |
| -## Changelog |
59 |
| - |
60 |
| -Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently. |
61 |
| - |
62 |
| -## Contributing |
63 |
| - |
64 |
| -Please see [CONTRIBUTING](.github/CONTRIBUTING.md) for details. |
65 |
| - |
66 |
| -## Security Vulnerabilities |
67 |
| - |
68 |
| -Please review [our security policy](../../security/policy) on how to report security vulnerabilities. |
69 |
| - |
70 |
| -## Credits |
71 |
| - |
72 |
| -- [Matan Yadaev](https://github.com/MatanYadaev) |
73 |
| -- [All Contributors](../../contributors) |
74 |
| - |
75 |
| -## License |
76 |
| - |
77 |
| -The MIT License (MIT). Please see [License File](LICENSE.md) for more information. |
0 commit comments