Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Actualizar id para bigint en versión 5.8 de laravel
- Loading branch information
1 parent
92a936c
commit 7515b39
Showing
9 changed files
with
534 additions
and
534 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.