Merge pull request #201 from jonnybarnes/some-tweaks
Some IDE helper tweaks
This commit is contained in:
commit
d3996ad3d9
15 changed files with 487 additions and 20668 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -9,6 +9,8 @@ npm-debug.log
|
|||
yarn-error.log
|
||||
/.idea
|
||||
/lsp
|
||||
.phpstorm.meta.php
|
||||
_ide_helper.php
|
||||
# Custom paths in /public
|
||||
/public/coverage
|
||||
/public/hot
|
||||
|
|
1477
.phpstorm.meta.php
1477
.phpstorm.meta.php
File diff suppressed because it is too large
Load diff
18993
_ide_helper.php
18993
_ide_helper.php
File diff suppressed because it is too large
Load diff
|
@ -5,9 +5,11 @@ declare(strict_types=1);
|
|||
namespace App\Models;
|
||||
|
||||
use Cviebrock\EloquentSluggable\Sluggable;
|
||||
use Eloquent;
|
||||
use Illuminate\Database\Eloquent\Builder;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\SoftDeletes;
|
||||
use Illuminate\Support\Carbon;
|
||||
use League\CommonMark\Block\Element\FencedCode;
|
||||
use League\CommonMark\Block\Element\IndentedCode;
|
||||
use League\CommonMark\CommonMarkConverter;
|
||||
|
@ -24,35 +26,35 @@ use Spatie\CommonMarkHighlighter\IndentedCodeRenderer;
|
|||
* @property string $title
|
||||
* @property string $main
|
||||
* @property int $published
|
||||
* @property \Illuminate\Support\Carbon|null $created_at
|
||||
* @property \Illuminate\Support\Carbon|null $updated_at
|
||||
* @property \Illuminate\Support\Carbon|null $deleted_at
|
||||
* @property Carbon|null $created_at
|
||||
* @property Carbon|null $updated_at
|
||||
* @property Carbon|null $deleted_at
|
||||
* @property-read string $html
|
||||
* @property-read string $human_time
|
||||
* @property-read string $link
|
||||
* @property-read string $pubdate
|
||||
* @property-read string $tooltip_time
|
||||
* @property-read string $w3c_time
|
||||
* @method static Builder|\App\Models\Article date($year = null, $month = null)
|
||||
* @method static Builder|\App\Models\Article findSimilarSlugs($attribute, $config, $slug)
|
||||
* @method static Builder|Article date($year = null, $month = null)
|
||||
* @method static Builder|Article findSimilarSlugs($attribute, $config, $slug)
|
||||
* @method static bool|null forceDelete()
|
||||
* @method static Builder|\App\Models\Article newModelQuery()
|
||||
* @method static Builder|\App\Models\Article newQuery()
|
||||
* @method static \Illuminate\Database\Query\Builder|\App\Models\Article onlyTrashed()
|
||||
* @method static Builder|\App\Models\Article query()
|
||||
* @method static Builder|Article newModelQuery()
|
||||
* @method static Builder|Article newQuery()
|
||||
* @method static \Illuminate\Database\Query\Builder|Article onlyTrashed()
|
||||
* @method static Builder|Article query()
|
||||
* @method static bool|null restore()
|
||||
* @method static Builder|\App\Models\Article whereCreatedAt($value)
|
||||
* @method static Builder|\App\Models\Article whereDeletedAt($value)
|
||||
* @method static Builder|\App\Models\Article whereId($value)
|
||||
* @method static Builder|\App\Models\Article whereMain($value)
|
||||
* @method static Builder|\App\Models\Article wherePublished($value)
|
||||
* @method static Builder|\App\Models\Article whereTitle($value)
|
||||
* @method static Builder|\App\Models\Article whereTitleurl($value)
|
||||
* @method static Builder|\App\Models\Article whereUpdatedAt($value)
|
||||
* @method static Builder|\App\Models\Article whereUrl($value)
|
||||
* @method static \Illuminate\Database\Query\Builder|\App\Models\Article withTrashed()
|
||||
* @method static \Illuminate\Database\Query\Builder|\App\Models\Article withoutTrashed()
|
||||
* @mixin \Eloquent
|
||||
* @method static Builder|Article whereCreatedAt($value)
|
||||
* @method static Builder|Article whereDeletedAt($value)
|
||||
* @method static Builder|Article whereId($value)
|
||||
* @method static Builder|Article whereMain($value)
|
||||
* @method static Builder|Article wherePublished($value)
|
||||
* @method static Builder|Article whereTitle($value)
|
||||
* @method static Builder|Article whereTitleurl($value)
|
||||
* @method static Builder|Article whereUpdatedAt($value)
|
||||
* @method static Builder|Article whereUrl($value)
|
||||
* @method static \Illuminate\Database\Query\Builder|Article withTrashed()
|
||||
* @method static \Illuminate\Database\Query\Builder|Article withoutTrashed()
|
||||
* @mixin Eloquent
|
||||
*/
|
||||
class Article extends Model
|
||||
{
|
||||
|
|
|
@ -4,8 +4,12 @@ declare(strict_types=1);
|
|||
|
||||
namespace App\Models;
|
||||
|
||||
use Eloquent;
|
||||
use Illuminate\Database\Eloquent\Builder;
|
||||
use Illuminate\Database\Eloquent\Collection;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\Relations\BelongsToMany;
|
||||
use Illuminate\Support\Carbon;
|
||||
|
||||
/**
|
||||
* App\Models\Bookmark.
|
||||
|
@ -17,24 +21,24 @@ use Illuminate\Database\Eloquent\Relations\BelongsToMany;
|
|||
* @property string|null $screenshot
|
||||
* @property string|null $archive
|
||||
* @property array|null $syndicates
|
||||
* @property \Illuminate\Support\Carbon|null $created_at
|
||||
* @property \Illuminate\Support\Carbon|null $updated_at
|
||||
* @property Carbon|null $created_at
|
||||
* @property Carbon|null $updated_at
|
||||
* @property-read string $longurl
|
||||
* @property-read \Illuminate\Database\Eloquent\Collection|\App\Models\Tag[] $tags
|
||||
* @property-read Collection|Tag[] $tags
|
||||
* @property-read int|null $tags_count
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Bookmark newModelQuery()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Bookmark newQuery()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Bookmark query()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Bookmark whereArchive($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Bookmark whereContent($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Bookmark whereCreatedAt($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Bookmark whereId($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Bookmark whereName($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Bookmark whereScreenshot($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Bookmark whereSyndicates($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Bookmark whereUpdatedAt($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Bookmark whereUrl($value)
|
||||
* @mixin \Eloquent
|
||||
* @method static Builder|Bookmark newModelQuery()
|
||||
* @method static Builder|Bookmark newQuery()
|
||||
* @method static Builder|Bookmark query()
|
||||
* @method static Builder|Bookmark whereArchive($value)
|
||||
* @method static Builder|Bookmark whereContent($value)
|
||||
* @method static Builder|Bookmark whereCreatedAt($value)
|
||||
* @method static Builder|Bookmark whereId($value)
|
||||
* @method static Builder|Bookmark whereName($value)
|
||||
* @method static Builder|Bookmark whereScreenshot($value)
|
||||
* @method static Builder|Bookmark whereSyndicates($value)
|
||||
* @method static Builder|Bookmark whereUpdatedAt($value)
|
||||
* @method static Builder|Bookmark whereUrl($value)
|
||||
* @mixin Eloquent
|
||||
*/
|
||||
class Bookmark extends Model
|
||||
{
|
||||
|
|
|
@ -4,7 +4,10 @@ declare(strict_types=1);
|
|||
|
||||
namespace App\Models;
|
||||
|
||||
use Eloquent;
|
||||
use Illuminate\Database\Eloquent\Builder;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Support\Carbon;
|
||||
|
||||
/**
|
||||
* App\Models\Contact.
|
||||
|
@ -14,21 +17,21 @@ use Illuminate\Database\Eloquent\Model;
|
|||
* @property string $name
|
||||
* @property string|null $homepage
|
||||
* @property string|null $twitter
|
||||
* @property \Illuminate\Support\Carbon|null $created_at
|
||||
* @property \Illuminate\Support\Carbon|null $updated_at
|
||||
* @property Carbon|null $created_at
|
||||
* @property Carbon|null $updated_at
|
||||
* @property string|null $facebook
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Contact newModelQuery()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Contact newQuery()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Contact query()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Contact whereCreatedAt($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Contact whereFacebook($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Contact whereHomepage($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Contact whereId($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Contact whereName($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Contact whereNick($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Contact whereTwitter($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Contact whereUpdatedAt($value)
|
||||
* @mixin \Eloquent
|
||||
* @method static Builder|Contact newModelQuery()
|
||||
* @method static Builder|Contact newQuery()
|
||||
* @method static Builder|Contact query()
|
||||
* @method static Builder|Contact whereCreatedAt($value)
|
||||
* @method static Builder|Contact whereFacebook($value)
|
||||
* @method static Builder|Contact whereHomepage($value)
|
||||
* @method static Builder|Contact whereId($value)
|
||||
* @method static Builder|Contact whereName($value)
|
||||
* @method static Builder|Contact whereNick($value)
|
||||
* @method static Builder|Contact whereTwitter($value)
|
||||
* @method static Builder|Contact whereUpdatedAt($value)
|
||||
* @mixin Eloquent
|
||||
*/
|
||||
class Contact extends Model
|
||||
{
|
||||
|
|
|
@ -5,8 +5,11 @@ declare(strict_types=1);
|
|||
namespace App\Models;
|
||||
|
||||
use App\Traits\FilterHtml;
|
||||
use Eloquent;
|
||||
use Illuminate\Database\Eloquent\Builder;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Support\Arr;
|
||||
use Illuminate\Support\Carbon;
|
||||
use Mf2;
|
||||
|
||||
/**
|
||||
|
@ -17,19 +20,19 @@ use Mf2;
|
|||
* @property string|null $author_name
|
||||
* @property string|null $author_url
|
||||
* @property string|null $content
|
||||
* @property \Illuminate\Support\Carbon|null $created_at
|
||||
* @property \Illuminate\Support\Carbon|null $updated_at
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Like newModelQuery()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Like newQuery()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Like query()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Like whereAuthorName($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Like whereAuthorUrl($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Like whereContent($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Like whereCreatedAt($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Like whereId($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Like whereUpdatedAt($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Like whereUrl($value)
|
||||
* @mixin \Eloquent
|
||||
* @property Carbon|null $created_at
|
||||
* @property Carbon|null $updated_at
|
||||
* @method static Builder|Like newModelQuery()
|
||||
* @method static Builder|Like newQuery()
|
||||
* @method static Builder|Like query()
|
||||
* @method static Builder|Like whereAuthorName($value)
|
||||
* @method static Builder|Like whereAuthorUrl($value)
|
||||
* @method static Builder|Like whereContent($value)
|
||||
* @method static Builder|Like whereCreatedAt($value)
|
||||
* @method static Builder|Like whereId($value)
|
||||
* @method static Builder|Like whereUpdatedAt($value)
|
||||
* @method static Builder|Like whereUrl($value)
|
||||
* @mixin Eloquent
|
||||
*/
|
||||
class Like extends Model
|
||||
{
|
||||
|
|
|
@ -4,8 +4,11 @@ declare(strict_types=1);
|
|||
|
||||
namespace App\Models;
|
||||
|
||||
use Eloquent;
|
||||
use Illuminate\Database\Eloquent\Builder;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
||||
use Illuminate\Support\Carbon;
|
||||
use Illuminate\Support\Str;
|
||||
|
||||
/**
|
||||
|
@ -16,25 +19,25 @@ use Illuminate\Support\Str;
|
|||
* @property string $path
|
||||
* @property string $type
|
||||
* @property int|null $note_id
|
||||
* @property \Illuminate\Support\Carbon|null $created_at
|
||||
* @property \Illuminate\Support\Carbon|null $updated_at
|
||||
* @property Carbon|null $created_at
|
||||
* @property Carbon|null $updated_at
|
||||
* @property string|null $image_widths
|
||||
* @property-read string $mediumurl
|
||||
* @property-read string $smallurl
|
||||
* @property-read string $url
|
||||
* @property-read \App\Models\Note|null $note
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Media newModelQuery()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Media newQuery()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Media query()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Media whereCreatedAt($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Media whereId($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Media whereImageWidths($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Media whereNoteId($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Media wherePath($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Media whereToken($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Media whereType($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Media whereUpdatedAt($value)
|
||||
* @mixin \Eloquent
|
||||
* @property-read Note|null $note
|
||||
* @method static Builder|Media newModelQuery()
|
||||
* @method static Builder|Media newQuery()
|
||||
* @method static Builder|Media query()
|
||||
* @method static Builder|Media whereCreatedAt($value)
|
||||
* @method static Builder|Media whereId($value)
|
||||
* @method static Builder|Media whereImageWidths($value)
|
||||
* @method static Builder|Media whereNoteId($value)
|
||||
* @method static Builder|Media wherePath($value)
|
||||
* @method static Builder|Media whereToken($value)
|
||||
* @method static Builder|Media whereType($value)
|
||||
* @method static Builder|Media whereUpdatedAt($value)
|
||||
* @mixin Eloquent
|
||||
*/
|
||||
class Media extends Model
|
||||
{
|
||||
|
|
|
@ -4,8 +4,12 @@ declare(strict_types=1);
|
|||
|
||||
namespace App\Models;
|
||||
|
||||
use Eloquent;
|
||||
use Illuminate\Database\Eloquent\Builder;
|
||||
use Illuminate\Database\Eloquent\Collection;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\Relations\HasMany;
|
||||
use Illuminate\Support\Carbon;
|
||||
|
||||
/**
|
||||
* App\Models\MicropubClient.
|
||||
|
@ -13,19 +17,19 @@ use Illuminate\Database\Eloquent\Relations\HasMany;
|
|||
* @property int $id
|
||||
* @property string $client_url
|
||||
* @property string $client_name
|
||||
* @property \Illuminate\Support\Carbon|null $created_at
|
||||
* @property \Illuminate\Support\Carbon|null $updated_at
|
||||
* @property-read \Illuminate\Database\Eloquent\Collection|\App\Models\Note[] $notes
|
||||
* @property Carbon|null $created_at
|
||||
* @property Carbon|null $updated_at
|
||||
* @property-read Collection|\App\Models\Note[] $notes
|
||||
* @property-read int|null $notes_count
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\MicropubClient newModelQuery()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\MicropubClient newQuery()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\MicropubClient query()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\MicropubClient whereClientName($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\MicropubClient whereClientUrl($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\MicropubClient whereCreatedAt($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\MicropubClient whereId($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\MicropubClient whereUpdatedAt($value)
|
||||
* @mixin \Eloquent
|
||||
* @method static Builder|MicropubClient newModelQuery()
|
||||
* @method static Builder|MicropubClient newQuery()
|
||||
* @method static Builder|MicropubClient query()
|
||||
* @method static Builder|MicropubClient whereClientName($value)
|
||||
* @method static Builder|MicropubClient whereClientUrl($value)
|
||||
* @method static Builder|MicropubClient whereCreatedAt($value)
|
||||
* @method static Builder|MicropubClient whereId($value)
|
||||
* @method static Builder|MicropubClient whereUpdatedAt($value)
|
||||
* @mixin Eloquent
|
||||
*/
|
||||
class MicropubClient extends Model
|
||||
{
|
||||
|
|
|
@ -6,10 +6,12 @@ namespace App\Models;
|
|||
|
||||
use App\Exceptions\TwitterContentException;
|
||||
use Codebird\Codebird;
|
||||
use Eloquent;
|
||||
use Exception;
|
||||
use GuzzleHttp\Client;
|
||||
use Illuminate\Database\Eloquent\Relations\{BelongsTo, BelongsToMany, HasMany, MorphMany};
|
||||
use Illuminate\Database\Eloquent\{Builder, Model, SoftDeletes};
|
||||
use Illuminate\Database\Eloquent\{Builder, Collection, Model, SoftDeletes};
|
||||
use Illuminate\Support\Carbon;
|
||||
use Illuminate\Support\Facades\Cache;
|
||||
use Jonnybarnes\IndieWeb\Numbers;
|
||||
use Laravel\Scout\Searchable;
|
||||
|
@ -30,15 +32,15 @@ use Spatie\CommonMarkHighlighter\{FencedCodeRenderer, IndentedCodeRenderer};
|
|||
* @property int|null $photo
|
||||
* @property string|null $tweet_id
|
||||
* @property string|null $client_id
|
||||
* @property \Illuminate\Support\Carbon|null $created_at
|
||||
* @property \Illuminate\Support\Carbon|null $updated_at
|
||||
* @property \Illuminate\Support\Carbon|null $deleted_at
|
||||
* @property Carbon|null $created_at
|
||||
* @property Carbon|null $updated_at
|
||||
* @property Carbon|null $deleted_at
|
||||
* @property int|null $place_id
|
||||
* @property string|null $facebook_url
|
||||
* @property string|null $searchable
|
||||
* @property string|null $swarm_url
|
||||
* @property string|null $instagram_url
|
||||
* @property-read \App\Models\MicropubClient|null $client
|
||||
* @property-read MicropubClient|null $client
|
||||
* @property-read string|null $address
|
||||
* @property-read string $content
|
||||
* @property-read string $humandiff
|
||||
|
@ -50,39 +52,39 @@ use Spatie\CommonMarkHighlighter\{FencedCodeRenderer, IndentedCodeRenderer};
|
|||
* @property-read string $pubdate
|
||||
* @property-read object|null $twitter
|
||||
* @property-read string $twitter_content
|
||||
* @property-read \Illuminate\Database\Eloquent\Collection|\App\Models\Media[] $media
|
||||
* @property-read Collection|Media[] $media
|
||||
* @property-read int|null $media_count
|
||||
* @property-read \App\Models\Place|null $place
|
||||
* @property-read \Illuminate\Database\Eloquent\Collection|\App\Models\Tag[] $tags
|
||||
* @property-read Place|null $place
|
||||
* @property-read Collection|Tag[] $tags
|
||||
* @property-read int|null $tags_count
|
||||
* @property-read \Illuminate\Database\Eloquent\Collection|\App\Models\WebMention[] $webmentions
|
||||
* @property-read Collection|WebMention[] $webmentions
|
||||
* @property-read int|null $webmentions_count
|
||||
* @method static bool|null forceDelete()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Note nb60($nb60id)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Note newModelQuery()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Note newQuery()
|
||||
* @method static \Illuminate\Database\Query\Builder|\App\Models\Note onlyTrashed()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Note query()
|
||||
* @method static Builder|Note nb60($nb60id)
|
||||
* @method static Builder|Note newModelQuery()
|
||||
* @method static Builder|Note newQuery()
|
||||
* @method static \Illuminate\Database\Query\Builder|Note onlyTrashed()
|
||||
* @method static Builder|Note query()
|
||||
* @method static bool|null restore()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Note whereClientId($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Note whereCreatedAt($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Note whereDeletedAt($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Note whereFacebookUrl($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Note whereId($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Note whereInReplyTo($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Note whereInstagramUrl($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Note whereLocation($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Note whereNote($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Note wherePhoto($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Note wherePlaceId($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Note whereSearchable($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Note whereShorturl($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Note whereSwarmUrl($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Note whereTweetId($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Note whereUpdatedAt($value)
|
||||
* @method static \Illuminate\Database\Query\Builder|\App\Models\Note withTrashed()
|
||||
* @method static \Illuminate\Database\Query\Builder|\App\Models\Note withoutTrashed()
|
||||
* @mixin \Eloquent
|
||||
* @method static Builder|Note whereClientId($value)
|
||||
* @method static Builder|Note whereCreatedAt($value)
|
||||
* @method static Builder|Note whereDeletedAt($value)
|
||||
* @method static Builder|Note whereFacebookUrl($value)
|
||||
* @method static Builder|Note whereId($value)
|
||||
* @method static Builder|Note whereInReplyTo($value)
|
||||
* @method static Builder|Note whereInstagramUrl($value)
|
||||
* @method static Builder|Note whereLocation($value)
|
||||
* @method static Builder|Note whereNote($value)
|
||||
* @method static Builder|Note wherePhoto($value)
|
||||
* @method static Builder|Note wherePlaceId($value)
|
||||
* @method static Builder|Note whereSearchable($value)
|
||||
* @method static Builder|Note whereShorturl($value)
|
||||
* @method static Builder|Note whereSwarmUrl($value)
|
||||
* @method static Builder|Note whereTweetId($value)
|
||||
* @method static Builder|Note whereUpdatedAt($value)
|
||||
* @method static \Illuminate\Database\Query\Builder|Note withTrashed()
|
||||
* @method static \Illuminate\Database\Query\Builder|Note withoutTrashed()
|
||||
* @mixin Eloquent
|
||||
*/
|
||||
class Note extends Model
|
||||
{
|
||||
|
|
|
@ -5,15 +5,15 @@ declare(strict_types=1);
|
|||
namespace App\Models;
|
||||
|
||||
use Cviebrock\EloquentSluggable\Sluggable;
|
||||
use Eloquent;
|
||||
use Illuminate\Database\Eloquent\Relations\HasMany;
|
||||
use Illuminate\Database\Eloquent\{Builder, Model};
|
||||
use Illuminate\Database\Eloquent\{Builder, Collection, Model};
|
||||
use Illuminate\Support\Carbon;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
use Illuminate\Support\Str;
|
||||
use MStaack\LaravelPostgis\Eloquent\PostgisTrait;
|
||||
use MStaack\LaravelPostgis\Geometries\Point;
|
||||
|
||||
// phpcs:disable Generic.Files.LineLength.TooLong
|
||||
|
||||
/**
|
||||
* App\Models\Place.
|
||||
*
|
||||
|
@ -21,10 +21,10 @@ use MStaack\LaravelPostgis\Geometries\Point;
|
|||
* @property string $name
|
||||
* @property string $slug
|
||||
* @property string|null $description
|
||||
* @property string $location
|
||||
* @property string|null $polygon
|
||||
* @property \Illuminate\Support\Carbon|null $created_at
|
||||
* @property \Illuminate\Support\Carbon|null $updated_at
|
||||
* @property Point $location
|
||||
* @property mixed|null $polygon
|
||||
* @property Carbon|null $created_at
|
||||
* @property Carbon|null $updated_at
|
||||
* @property string|null $icon
|
||||
* @property string|null $foursquare
|
||||
* @property mixed|null $external_urls
|
||||
|
@ -33,30 +33,29 @@ use MStaack\LaravelPostgis\Geometries\Point;
|
|||
* @property-read string $longurl
|
||||
* @property-read string $shorturl
|
||||
* @property-read string $uri
|
||||
* @property-read \Illuminate\Database\Eloquent\Collection|\App\Models\Note[] $notes
|
||||
* @property-read Collection|Note[] $notes
|
||||
* @property-read int|null $notes_count
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Place findSimilarSlugs($attribute, $config, $slug)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Place near(\MStaack\LaravelPostgis\Geometries\Point $point, $distance = 1000)
|
||||
* @method static \MStaack\LaravelPostgis\Eloquent\Builder|\App\Models\Place newModelQuery()
|
||||
* @method static \MStaack\LaravelPostgis\Eloquent\Builder|\App\Models\Place newQuery()
|
||||
* @method static \MStaack\LaravelPostgis\Eloquent\Builder|\App\Models\Place query()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Place whereCreatedAt($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Place whereDescription($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Place whereExternalURL($url)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Place whereExternalUrls($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Place whereFoursquare($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Place whereIcon($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Place whereId($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Place whereLocation($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Place whereName($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Place wherePolygon($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Place whereSlug($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Place whereUpdatedAt($value)
|
||||
* @mixin \Eloquent
|
||||
* @method static Builder|Place findSimilarSlugs($attribute, $config, $slug)
|
||||
* @method static Builder|Place near(Point $point, $distance = 1000)
|
||||
* @method static \MStaack\LaravelPostgis\Eloquent\Builder|Place newModelQuery()
|
||||
* @method static \MStaack\LaravelPostgis\Eloquent\Builder|Place newQuery()
|
||||
* @method static \MStaack\LaravelPostgis\Eloquent\Builder|Place query()
|
||||
* @method static Builder|Place whereCreatedAt($value)
|
||||
* @method static Builder|Place whereDescription($value)
|
||||
* @method static Builder|Place whereExternalURL($url)
|
||||
* @method static Builder|Place whereExternalUrls($value)
|
||||
* @method static Builder|Place whereFoursquare($value)
|
||||
* @method static Builder|Place whereIcon($value)
|
||||
* @method static Builder|Place whereId($value)
|
||||
* @method static Builder|Place whereLocation($value)
|
||||
* @method static Builder|Place whereName($value)
|
||||
* @method static Builder|Place wherePolygon($value)
|
||||
* @method static Builder|Place whereSlug($value)
|
||||
* @method static Builder|Place whereUpdatedAt($value)
|
||||
* @mixin Eloquent
|
||||
*/
|
||||
class Place extends Model
|
||||
{
|
||||
// phpcs:enable Generic.Files.LineLength.TooLong
|
||||
use Sluggable;
|
||||
use PostgisTrait;
|
||||
|
||||
|
|
|
@ -4,28 +4,32 @@ declare(strict_types=1);
|
|||
|
||||
namespace App\Models;
|
||||
|
||||
use Eloquent;
|
||||
use Illuminate\Database\Eloquent\Builder;
|
||||
use Illuminate\Database\Eloquent\Collection;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\Relations\BelongsToMany;
|
||||
use Illuminate\Support\Carbon;
|
||||
|
||||
/**
|
||||
* App\Models\Tag.
|
||||
*
|
||||
* @property int $id
|
||||
* @property string $tag
|
||||
* @property \Illuminate\Support\Carbon|null $created_at
|
||||
* @property \Illuminate\Support\Carbon|null $updated_at
|
||||
* @property-read \Illuminate\Database\Eloquent\Collection|\App\Models\Bookmark[] $bookmarks
|
||||
* @property Carbon|null $created_at
|
||||
* @property Carbon|null $updated_at
|
||||
* @property-read Collection|Bookmark[] $bookmarks
|
||||
* @property-read int|null $bookmarks_count
|
||||
* @property-read \Illuminate\Database\Eloquent\Collection|\App\Models\Note[] $notes
|
||||
* @property-read Collection|Note[] $notes
|
||||
* @property-read int|null $notes_count
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Tag newModelQuery()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Tag newQuery()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Tag query()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Tag whereCreatedAt($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Tag whereId($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Tag whereTag($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Tag whereUpdatedAt($value)
|
||||
* @mixin \Eloquent
|
||||
* @method static Builder|Tag newModelQuery()
|
||||
* @method static Builder|Tag newQuery()
|
||||
* @method static Builder|Tag query()
|
||||
* @method static Builder|Tag whereCreatedAt($value)
|
||||
* @method static Builder|Tag whereId($value)
|
||||
* @method static Builder|Tag whereTag($value)
|
||||
* @method static Builder|Tag whereUpdatedAt($value)
|
||||
* @mixin Eloquent
|
||||
*/
|
||||
class Tag extends Model
|
||||
{
|
||||
|
|
|
@ -4,10 +4,13 @@ declare(strict_types=1);
|
|||
|
||||
namespace App\Models;
|
||||
|
||||
use Eloquent;
|
||||
use Illuminate\Database\Eloquent\Builder;
|
||||
use Illuminate\Foundation\Auth\User as Authenticatable;
|
||||
use Illuminate\Notifications\DatabaseNotification;
|
||||
use Illuminate\Notifications\DatabaseNotificationCollection;
|
||||
use Illuminate\Notifications\Notifiable;
|
||||
|
||||
// phpcs:disable Generic.Files.LineLength.TooLong
|
||||
use Illuminate\Support\Carbon;
|
||||
|
||||
/**
|
||||
* App\Models\User.
|
||||
|
@ -16,24 +19,23 @@ use Illuminate\Notifications\Notifiable;
|
|||
* @property string $name
|
||||
* @property string $password
|
||||
* @property string|null $remember_token
|
||||
* @property \Illuminate\Support\Carbon|null $created_at
|
||||
* @property \Illuminate\Support\Carbon|null $updated_at
|
||||
* @property-read \Illuminate\Notifications\DatabaseNotificationCollection|\Illuminate\Notifications\DatabaseNotification[] $notifications
|
||||
* @property Carbon|null $created_at
|
||||
* @property Carbon|null $updated_at
|
||||
* @property-read DatabaseNotificationCollection|DatabaseNotification[] $notifications
|
||||
* @property-read int|null $notifications_count
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\User newModelQuery()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\User newQuery()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\User query()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\User whereCreatedAt($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\User whereId($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\User whereName($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\User wherePassword($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\User whereRememberToken($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\User whereUpdatedAt($value)
|
||||
* @mixin \Eloquent
|
||||
* @method static Builder|User newModelQuery()
|
||||
* @method static Builder|User newQuery()
|
||||
* @method static Builder|User query()
|
||||
* @method static Builder|User whereCreatedAt($value)
|
||||
* @method static Builder|User whereId($value)
|
||||
* @method static Builder|User whereName($value)
|
||||
* @method static Builder|User wherePassword($value)
|
||||
* @method static Builder|User whereRememberToken($value)
|
||||
* @method static Builder|User whereUpdatedAt($value)
|
||||
* @mixin Eloquent
|
||||
*/
|
||||
class User extends Authenticatable
|
||||
{
|
||||
// phpcs:enable Generic.Files.LineLength.TooLong
|
||||
use Notifiable;
|
||||
|
||||
/**
|
||||
|
|
|
@ -6,9 +6,12 @@ namespace App\Models;
|
|||
|
||||
use App\Traits\FilterHtml;
|
||||
use Codebird\Codebird;
|
||||
use Eloquent;
|
||||
use Illuminate\Database\Eloquent\Builder;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\Relations\MorphTo;
|
||||
use Illuminate\Filesystem\Filesystem;
|
||||
use Illuminate\Support\Carbon;
|
||||
use Illuminate\Support\Facades\Cache;
|
||||
use Jonnybarnes\WebmentionsParser\Authorship;
|
||||
use Jonnybarnes\WebmentionsParser\Exceptions\AuthorshipParserException;
|
||||
|
@ -24,30 +27,30 @@ use Jonnybarnes\WebmentionsParser\Exceptions\AuthorshipParserException;
|
|||
* @property string|null $type
|
||||
* @property string|null $content
|
||||
* @property int $verified
|
||||
* @property \Illuminate\Support\Carbon|null $created_at
|
||||
* @property \Illuminate\Support\Carbon|null $updated_at
|
||||
* @property Carbon|null $created_at
|
||||
* @property Carbon|null $updated_at
|
||||
* @property string|null $deleted_at
|
||||
* @property mixed|null $mf2
|
||||
* @property-read \App\Models\WebMention|null $commentable
|
||||
* @property-read WebMention|null $commentable
|
||||
* @property-read array $author
|
||||
* @property-read string|null $published
|
||||
* @property-read string|null $reply
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\WebMention newModelQuery()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\WebMention newQuery()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\WebMention query()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\WebMention whereCommentableId($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\WebMention whereCommentableType($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\WebMention whereContent($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\WebMention whereCreatedAt($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\WebMention whereDeletedAt($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\WebMention whereId($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\WebMention whereMf2($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\WebMention whereSource($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\WebMention whereTarget($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\WebMention whereType($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\WebMention whereUpdatedAt($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\WebMention whereVerified($value)
|
||||
* @mixin \Eloquent
|
||||
* @method static Builder|WebMention newModelQuery()
|
||||
* @method static Builder|WebMention newQuery()
|
||||
* @method static Builder|WebMention query()
|
||||
* @method static Builder|WebMention whereCommentableId($value)
|
||||
* @method static Builder|WebMention whereCommentableType($value)
|
||||
* @method static Builder|WebMention whereContent($value)
|
||||
* @method static Builder|WebMention whereCreatedAt($value)
|
||||
* @method static Builder|WebMention whereDeletedAt($value)
|
||||
* @method static Builder|WebMention whereId($value)
|
||||
* @method static Builder|WebMention whereMf2($value)
|
||||
* @method static Builder|WebMention whereSource($value)
|
||||
* @method static Builder|WebMention whereTarget($value)
|
||||
* @method static Builder|WebMention whereType($value)
|
||||
* @method static Builder|WebMention whereUpdatedAt($value)
|
||||
* @method static Builder|WebMention whereVerified($value)
|
||||
* @mixin Eloquent
|
||||
*/
|
||||
class WebMention extends Model
|
||||
{
|
||||
|
|
258
config/ide-helper.php
Normal file
258
config/ide-helper.php
Normal file
|
@ -0,0 +1,258 @@
|
|||
<?php
|
||||
|
||||
return [
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Filename & Format
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The default filename (without extension) and the format (php or json)
|
||||
|
|
||||
*/
|
||||
|
||||
'filename' => '_ide_helper',
|
||||
'format' => 'php',
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Where to write the PhpStorm specific meta file
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| PhpStorm also supports the directory `.phpstorm.meta.php/` with arbitrary
|
||||
| files in it, should you need additional files for your project; e.g.
|
||||
| `.phpstorm.meta.php/laravel_ide_Helper.php'.
|
||||
|
|
||||
*/
|
||||
'meta_filename' => '.phpstorm.meta.php',
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Fluent helpers
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Set to true to generate commonly used Fluent methods
|
||||
|
|
||||
*/
|
||||
|
||||
'include_fluent' => false,
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Factory Builders
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Set to true to generate factory generators for better factory()
|
||||
| method auto-completion.
|
||||
|
|
||||
*/
|
||||
|
||||
'include_factory_builders' => false,
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Write Model Magic methods
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Set to false to disable write magic methods of model
|
||||
|
|
||||
*/
|
||||
|
||||
'write_model_magic_where' => true,
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Write Model relation count properties
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Set to false to disable writing of relation count properties to model DocBlocks.
|
||||
|
|
||||
*/
|
||||
|
||||
'write_model_relation_count_properties' => true,
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Write Eloquent Model Mixins
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This will add the necessary DocBlock mixins to the model class
|
||||
| contained in the Laravel Framework. This helps the IDE with
|
||||
| auto-completion.
|
||||
|
|
||||
| Please be aware that this setting changes a file within the /vendor directory.
|
||||
|
|
||||
*/
|
||||
|
||||
'write_eloquent_model_mixins' => false,
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Helper files to include
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Include helper files. By default not included, but can be toggled with the
|
||||
| -- helpers (-H) option. Extra helper files can be included.
|
||||
|
|
||||
*/
|
||||
|
||||
'include_helpers' => false,
|
||||
|
||||
'helper_files' => [
|
||||
base_path() . '/vendor/laravel/framework/src/Illuminate/Support/helpers.php',
|
||||
],
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Model locations to include
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Define in which directories the ide-helper:models command should look
|
||||
| for models.
|
||||
|
|
||||
| glob patterns are supported to easier reach models in sub-directories,
|
||||
| e.g. `app/Services/* /Models` (without the space)
|
||||
|
|
||||
*/
|
||||
|
||||
'model_locations' => [
|
||||
'app',
|
||||
],
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Models to ignore
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Define which models should be ignored.
|
||||
|
|
||||
*/
|
||||
|
||||
'ignored_models' => [
|
||||
|
||||
],
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Extra classes
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| These implementations are not really extended, but called with magic functions
|
||||
|
|
||||
*/
|
||||
|
||||
'extra' => [
|
||||
'Eloquent' => ['Illuminate\Database\Eloquent\Builder', 'Illuminate\Database\Query\Builder'],
|
||||
'Session' => ['Illuminate\Session\Store'],
|
||||
],
|
||||
|
||||
'magic' => [],
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Interface implementations
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| These interfaces will be replaced with the implementing class. Some interfaces
|
||||
| are detected by the helpers, others can be listed below.
|
||||
|
|
||||
*/
|
||||
|
||||
'interfaces' => [
|
||||
|
||||
],
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Support for custom DB types
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This setting allow you to map any custom database type (that you may have
|
||||
| created using CREATE TYPE statement or imported using database plugin
|
||||
| / extension to a Doctrine type.
|
||||
|
|
||||
| Each key in this array is a name of the Doctrine2 DBAL Platform. Currently valid names are:
|
||||
| 'postgresql', 'db2', 'drizzle', 'mysql', 'oracle', 'sqlanywhere', 'sqlite', 'mssql'
|
||||
|
|
||||
| This name is returned by getName() method of the specific Doctrine/DBAL/Platforms/AbstractPlatform descendant
|
||||
|
|
||||
| The value of the array is an array of type mappings. Key is the name of the custom type,
|
||||
| (for example, "jsonb" from Postgres 9.4) and the value is the name of the corresponding Doctrine2 type (in
|
||||
| our case it is 'json_array'. Doctrine types are listed here:
|
||||
| http://doctrine-dbal.readthedocs.org/en/latest/reference/types.html
|
||||
|
|
||||
| So to support jsonb in your models when working with Postgres, just add the following entry to the array below:
|
||||
|
|
||||
| "postgresql" => array(
|
||||
| "jsonb" => "json_array",
|
||||
| ),
|
||||
|
|
||||
*/
|
||||
'custom_db_types' => [
|
||||
'postgresql' => [
|
||||
'geography' => 'array',
|
||||
],
|
||||
],
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Support for camel cased models
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| There are some Laravel packages (such as Eloquence) that allow for accessing
|
||||
| Eloquent model properties via camel case, instead of snake case.
|
||||
|
|
||||
| Enabling this option will support these packages by saving all model
|
||||
| properties as camel case, instead of snake case.
|
||||
|
|
||||
| For example, normally you would see this:
|
||||
|
|
||||
| * @property \Illuminate\Support\Carbon $created_at
|
||||
| * @property \Illuminate\Support\Carbon $updated_at
|
||||
|
|
||||
| With this enabled, the properties will be this:
|
||||
|
|
||||
| * @property \Illuminate\Support\Carbon $createdAt
|
||||
| * @property \Illuminate\Support\Carbon $updatedAt
|
||||
|
|
||||
| Note, it is currently an all-or-nothing option.
|
||||
|
|
||||
*/
|
||||
'model_camel_case_properties' => false,
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Property Casts
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Cast the given "real type" to the given "type".
|
||||
|
|
||||
*/
|
||||
'type_overrides' => [
|
||||
'integer' => 'int',
|
||||
'boolean' => 'bool',
|
||||
],
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Include DocBlocks from classes
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Include DocBlocks from classes to allow additional code inspection for
|
||||
| magic methods and properties.
|
||||
|
|
||||
*/
|
||||
'include_class_docblocks' => false,
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Force FQN usage
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Use the fully qualified (class) name in docBlock,
|
||||
| event if class exists in a given file
|
||||
| or there is an import (use className) of a given class
|
||||
|
|
||||
*/
|
||||
'force_fqn' => false,
|
||||
];
|
Loading…
Add table
Add a link
Reference in a new issue