Skip to content

Commit

Permalink
Actualizar id para bigint en versión 5.8 de laravel
Browse files Browse the repository at this point in the history
  • Loading branch information
sirgrimorum committed Jul 8, 2019
1 parent 92a936c commit 7515b39
Show file tree
Hide file tree
Showing 9 changed files with 534 additions and 534 deletions.
42 changes: 21 additions & 21 deletions LICENSE.md
@@ -1,21 +1,21 @@
# The MIT License (MIT)

Copyright (c) 2018 sirgrimorum <andres.espinosa@grimorum.com>

> Permission is hereby granted, free of charge, to any person obtaining a copy
> of this software and associated documentation files (the "Software"), to deal
> in the Software without restriction, including without limitation the rights
> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
> copies of the Software, and to permit persons to whom the Software is
> furnished to do so, subject to the following conditions:
>
> The above copyright notice and this permission notice shall be included in
> all copies or substantial portions of the Software.
>
> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
> THE SOFTWARE.
# The MIT License (MIT)

Copyright (c) 2018 sirgrimorum <andres.espinosa@grimorum.com>

> Permission is hereby granted, free of charge, to any person obtaining a copy
> of this software and associated documentation files (the "Software"), to deal
> in the Software without restriction, including without limitation the rights
> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
> copies of the Software, and to permit persons to whom the Software is
> furnished to do so, subject to the following conditions:
>
> The above copyright notice and this permission notice shall be included in
> all copies or substantial portions of the Software.
>
> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
> THE SOFTWARE.
244 changes: 122 additions & 122 deletions README.md
@@ -1,122 +1,122 @@
# SirGrimorum's TransArticles

[![Latest Version on Packagist][ico-version]][link-packagist]
[![Software License][ico-license]](LICENSE.md)
[![Build Status][ico-travis]][link-travis]
[![Coverage Status][ico-scrutinizer]][link-scrutinizer]
[![Quality Score][ico-code-quality]][link-code-quality]
[![Total Downloads][ico-downloads]][link-downloads]


Localization using a datablase table for Laravel 5.6. Include a function to add Translation form DB to javascript.

## Install

Via Composer

``` bash
$ composer require :sirgrimorum/transarticles
```

Create Table

``` bash
$ php artisan migrate
```

Publish Configuration

``` bash
$php artisan vendor:publish --tag=config
```

## Usage

Bring a translated article

``` php
$text = TransArticles::get("scope.nickname");
```

## Articles to JavaScript

Load javascript object with all translations of a given scope

``` html
{!! TransArticles::getjs('scope') !!}
<script>
(function() {
alert(translations.scope.nickname);
})();
</script>
```

Load javascript object with translated article

``` html
{!! TransArticles::getjs('scope.nickname') !!}
<script>
(function() {
alert(translations.scope.nickname);
})();
</script>
```

## Blade directives


Bring a translated article using the Blade directive

``` html
@transarticles("scope.nickname")
```

Load javascript object with all translations of a given scope using the Blade directive

``` html
@transarticles_tojs('scope')
<script>
(function() {
alert(translations.scope.nickname);
})();
</script>
```

Load javascript object with translated article using the Blade directive

``` html
@transarticles_tojs('scope.nickname')
<script>
(function() {
alert(translations.scope.nickname);
})();
</script>
```

## Security

If you discover any security related issues, please email andres.espinosa@grimorum.com instead of using the issue tracker.

## Credits

- SirGrimorum [link-author]
- Grimorum Ltda. [link-contributors]

## License

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

[ico-version]: https://img.shields.io/packagist/v/sirgrimorum/transarticles.svg?style=flat-square
[ico-license]: https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square
[ico-travis]: https://img.shields.io/scrutinizer/build/g/sirgrimorum/transarticles.svg?style=flat-square
[ico-scrutinizer]: https://img.shields.io/scrutinizer/coverage/g/sirgrimorum/transarticles.svg?style=flat-square
[ico-code-quality]: https://img.shields.io/scrutinizer/g/sirgrimorum/transarticles.svg?style=flat-square
[ico-downloads]: https://img.shields.io/packagist/dt/sirgrimorum/transarticles.svg?style=flat-square

[link-packagist]: https://packagist.org/packages/sirgrimorum/transarticles
[link-travis]: https://scrutinizer-ci.com/g/sirgrimorum/transarticles/inspections
[link-scrutinizer]: https://scrutinizer-ci.com/g/sirgrimorum/transarticles/code-structure
[link-code-quality]: https://scrutinizer-ci.com/g/sirgrimorum/transarticles
[link-downloads]: https://github.com/sirgrimorum/transarticles
[link-author]: https://github.com/sirgrimorum
[link-contributors]: http://grimorum.com
# SirGrimorum's TransArticles

[![Latest Version on Packagist][ico-version]][link-packagist]
[![Software License][ico-license]](LICENSE.md)
[![Build Status][ico-travis]][link-travis]
[![Coverage Status][ico-scrutinizer]][link-scrutinizer]
[![Quality Score][ico-code-quality]][link-code-quality]
[![Total Downloads][ico-downloads]][link-downloads]


Localization using a datablase table for Laravel 5.6. Include a function to add Translation form DB to javascript.

## Install

Via Composer

``` bash
$ composer require :sirgrimorum/transarticles
```

Create Table

``` bash
$ php artisan migrate
```

Publish Configuration

``` bash
$php artisan vendor:publish --tag=config
```

## Usage

Bring a translated article

``` php
$text = TransArticles::get("scope.nickname");
```

## Articles to JavaScript

Load javascript object with all translations of a given scope

``` html
{!! TransArticles::getjs('scope') !!}
<script>
(function() {
alert(translations.scope.nickname);
})();
</script>
```

Load javascript object with translated article

``` html
{!! TransArticles::getjs('scope.nickname') !!}
<script>
(function() {
alert(translations.scope.nickname);
})();
</script>
```

## Blade directives


Bring a translated article using the Blade directive

``` html
@transarticles("scope.nickname")
```

Load javascript object with all translations of a given scope using the Blade directive

``` html
@transarticles_tojs('scope')
<script>
(function() {
alert(translations.scope.nickname);
})();
</script>
```

Load javascript object with translated article using the Blade directive

``` html
@transarticles_tojs('scope.nickname')
<script>
(function() {
alert(translations.scope.nickname);
})();
</script>
```

## Security

If you discover any security related issues, please email andres.espinosa@grimorum.com instead of using the issue tracker.

## Credits

- SirGrimorum [link-author]
- Grimorum Ltda. [link-contributors]

## License

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

[ico-version]: https://img.shields.io/packagist/v/sirgrimorum/transarticles.svg?style=flat-square
[ico-license]: https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square
[ico-travis]: https://img.shields.io/scrutinizer/build/g/sirgrimorum/transarticles.svg?style=flat-square
[ico-scrutinizer]: https://img.shields.io/scrutinizer/coverage/g/sirgrimorum/transarticles.svg?style=flat-square
[ico-code-quality]: https://img.shields.io/scrutinizer/g/sirgrimorum/transarticles.svg?style=flat-square
[ico-downloads]: https://img.shields.io/packagist/dt/sirgrimorum/transarticles.svg?style=flat-square

[link-packagist]: https://packagist.org/packages/sirgrimorum/transarticles
[link-travis]: https://scrutinizer-ci.com/g/sirgrimorum/transarticles/inspections
[link-scrutinizer]: https://scrutinizer-ci.com/g/sirgrimorum/transarticles/code-structure
[link-code-quality]: https://scrutinizer-ci.com/g/sirgrimorum/transarticles
[link-downloads]: https://github.com/sirgrimorum/transarticles
[link-author]: https://github.com/sirgrimorum
[link-contributors]: http://grimorum.com
104 changes: 52 additions & 52 deletions composer.json
@@ -1,52 +1,52 @@
{
"name": "sirgrimorum/transarticles",
"type": "library",
"description": "Localization using db table as source for translated text",
"keywords": [
"sirgrimorum",
"TransArticles",
"Localizarion"
],
"homepage": "http://desarrollo.grimorum.com/andres/transarticles",
"license": "MIT",
"authors": [
{
"name": "Sirgrimorum",
"email": "andres.espinosa@grimorum.com"
}
],
"require": {
"php": ">=7.0",
"laravel/framework": ">=5.4"
},
"require-dev": {
"phpunit/phpunit" : ">=5.4.3"
},
"autoload": {
"classmap": [
"src"
],
"psr-4": {
"Sirgrimorum\\TransArticles\\": "src/"
},
"files" : ["src/Helper.php"]
},
"autoload-dev": {
"psr-4": {

}
},
"extra": {
"branch-alias": {
"dev-master": "1.2.6-dev"
},
"laravel": {
"providers": [
"Sirgrimorum\\TransArticles\\TransArticlesServiceProvider"
],
"aliases": {
"TransArticles": "Sirgrimorum\\TransArticles\\TransArticlesFacade"
}
}
}
}
{
"name": "sirgrimorum/transarticles",
"type": "library",
"description": "Localization using db table as source for translated text",
"keywords": [
"sirgrimorum",
"TransArticles",
"Localizarion"
],
"homepage": "http://desarrollo.grimorum.com/andres/transarticles",
"license": "MIT",
"authors": [
{
"name": "Sirgrimorum",
"email": "andres.espinosa@grimorum.com"
}
],
"require": {
"php": ">=7.0",
"laravel/framework": ">=5.4"
},
"require-dev": {
"phpunit/phpunit" : ">=5.4.3"
},
"autoload": {
"classmap": [
"src"
],
"psr-4": {
"Sirgrimorum\\TransArticles\\": "src/"
},
"files" : ["src/Helper.php"]
},
"autoload-dev": {
"psr-4": {

}
},
"extra": {
"branch-alias": {
"dev-master": "1.2.7-dev"
},
"laravel": {
"providers": [
"Sirgrimorum\\TransArticles\\TransArticlesServiceProvider"
],
"aliases": {
"TransArticles": "Sirgrimorum\\TransArticles\\TransArticlesFacade"
}
}
}
}

0 comments on commit 7515b39

Please sign in to comment.