Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Письменов Дмитрий Иванович
/
yourroomads
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 8c3a693c
authored
Jun 15, 2021
by
Vladislav
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
1 parent
25e5148a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
app/Models/Dictionary.php
app/Models/Dictionary.php
View file @
8c3a693
...
@@ -58,7 +58,8 @@ class Dictionary extends Model
...
@@ -58,7 +58,8 @@ class Dictionary extends Model
return
$this
->
belongsToMany
(
Campaigns
::
class
,
'dictionary_campaigns'
,
'dictionary_id'
,
'campaign_id'
)
return
$this
->
belongsToMany
(
Campaigns
::
class
,
'dictionary_campaigns'
,
'dictionary_id'
,
'campaign_id'
)
->
using
(
DictionaryCampaign
::
class
)
->
using
(
DictionaryCampaign
::
class
)
->
withPivot
(
DictionaryCampaign
::
getWithPivot
())
->
withPivot
(
DictionaryCampaign
::
getWithPivot
())
->
withTimestamps
();
->
withTimestamps
()
->
whereNull
(
'dictionary_campaigns.deleted_at'
);
}
}
public
function
dictionaryCampaigns
()
public
function
dictionaryCampaigns
()
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment