This repository has been archived by the owner on Feb 16, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* release/v0.0.4: (56 commits) Update changelog Drop Laravel 5.5 support Update composer packages Update composer packages Apply fixes from StyleCI Check if attribute_entity database table exists before querying entity attributes Return eloquent collection always from getEntityAttributes method for compatibility Add force option to artisan commands Simplify IoC binding Update minimum required PHP version Add Laravel v5.6 support Sort attributes on retrieval Drop useless model contracts (models already swappable through IoC) Typehint method returns Typehint void method returns Fixed #30 Fix entity custom primary id issue (fix #30, #26) Fix documentation code smaple Remove fillable relation rules Fix entities issue and tweak some features ...
- Loading branch information
Showing
34 changed files
with
399 additions
and
314 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,8 +1,9 @@ | ||
* text=auto | ||
*.js linguist-vendored | ||
*.css linguist-vendored | ||
*.scss linguist-vendored | ||
|
||
phpunit.* export-ignore | ||
phpcs.* export-ignore | ||
tests export-ignore | ||
.* export-ignore | ||
/phpunit.* export-ignore | ||
/phpcs.* export-ignore | ||
/tests export-ignore | ||
/.* export-ignore |
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,20 +1,33 @@ | ||
preset: recommended | ||
php: | ||
preset: recommended | ||
|
||
enabled: | ||
- dir_constant | ||
- ereg_to_preg | ||
- mb_str_functions | ||
- no_short_echo_tag | ||
- strict_comparison | ||
- phpdoc_link_to_see | ||
- no_php4_constructor | ||
- declare_strict_types | ||
- unalign_double_arrow | ||
- length_ordered_imports | ||
- modernize_types_casting | ||
- return_type_declaration | ||
- not_operator_with_successor_space | ||
enabled: | ||
- dir_constant | ||
- ereg_to_preg | ||
- mb_str_functions | ||
- no_short_echo_tag | ||
- strict_comparison | ||
- phpdoc_link_to_see | ||
- no_php4_constructor | ||
- declare_strict_types | ||
- unalign_double_arrow | ||
- length_ordered_imports | ||
- modernize_types_casting | ||
- return_type_declaration | ||
- not_operator_with_successor_space | ||
|
||
disabled: | ||
- align_double_arrow | ||
- alpha_ordered_imports | ||
disabled: | ||
- align_double_arrow | ||
- alpha_ordered_imports | ||
|
||
js: | ||
tab-width: 4 | ||
print-width: 120 | ||
|
||
ts: | ||
tab-width: 4 | ||
print-width: 120 | ||
|
||
css: | ||
tab-width: 4 | ||
print-width: 120 |
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
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
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
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
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
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
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
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
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
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
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
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
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 |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Rinvex\Attributes\Console\Commands; | ||
|
||
use Illuminate\Console\Command; | ||
|
||
class PublishCommand extends Command | ||
{ | ||
/** | ||
* The name and signature of the console command. | ||
* | ||
* @var string | ||
*/ | ||
protected $signature = 'rinvex:publish:attributes {--force : Overwrite any existing files.}'; | ||
|
||
/** | ||
* The console command description. | ||
* | ||
* @var string | ||
*/ | ||
protected $description = 'Publish Rinvex Attributes Resources.'; | ||
|
||
/** | ||
* Execute the console command. | ||
* | ||
* @return void | ||
*/ | ||
public function handle(): void | ||
{ | ||
$this->warn($this->description); | ||
$this->call('vendor:publish', ['--tag' => 'rinvex-attributes-config', '--force' => $this->option('force')]); | ||
} | ||
} |
Oops, something went wrong.