This website works better with JavaScript.
Home
Explore
Help
Register
Sign In
lesderid
/
pastethingy
Watch
2
Star
1
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
Fix Paste model and migration
master
Les De Ridder
4 years ago
parent
c22392bcc4
commit
f389161b79
2 changed files
with
2 additions
and
2 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
app/Paste.php
+1
-1
database/migrations/2016_05_27_230057_create_pastes_table.php
+ 1
- 1
app/Paste.php
View File
@ -19,7 +19,7 @@ class Paste extends Model
return
$this
->
deletion
!==
null
;
}
public
function
delete
(
$reason
,
$deleted_by
)
public
function
soft_
delete
(
$reason
,
$deleted_by
)
{
if
(
$this
->
isDeleted
())
{
+ 1
- 1
database/migrations/2016_05_27_230057_create_pastes_table.php
View File
@ -16,7 +16,7 @@ class CreatePastesTable extends Migration
$table
->
char
(
'id'
,
6
);
$table
->
string
(
'language'
);
$table
->
timestamp
(
'created_at'
);
$table
->
timestamp
(
'expires_at'
);
$table
->
timestamp
(
'expires_at'
)
->
nullable
()
;
$table
->
primary
(
'id'
);
});
Write
Preview
Loading…
Cancel
Save