Add updated at timestamp
This commit is contained in:
parent
46ecce7b88
commit
948bca3f0a
6 changed files with 7 additions and 7328 deletions
|
|
@ -4,6 +4,9 @@ APP_KEY=
|
|||
APP_DEBUG=true
|
||||
APP_URL=http://localhost
|
||||
|
||||
WWWUSER=
|
||||
WWWGROUP=
|
||||
|
||||
APP_LOCALE=en
|
||||
APP_FALLBACK_LOCALE=en
|
||||
APP_FAKER_LOCALE=en_US
|
||||
|
|
|
|||
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -16,6 +16,7 @@ Homestead.json
|
|||
Homestead.yaml
|
||||
npm-debug.log
|
||||
yarn-error.log
|
||||
/package-lock.json
|
||||
/auth.json
|
||||
/.fleet
|
||||
/.idea
|
||||
|
|
|
|||
|
|
@ -24,6 +24,7 @@ public function casts(): array
|
|||
{
|
||||
return [
|
||||
'created_at' => 'datetime',
|
||||
'updated_at' => 'datetime',
|
||||
];
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
use App\Models\Article;
|
||||
use Exception;
|
||||
use Illuminate\Database\Eloquent\Collection;
|
||||
use Illuminate\Support\Collection;
|
||||
use Illuminate\Support\Facades\Http;
|
||||
|
||||
class ArticleFetcher
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ public function up(): void
|
|||
$table->id();
|
||||
$table->string('url');
|
||||
$table->boolean('is_relevant')->nullable();
|
||||
$table->timestamp('created_at')->default(now());
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
7326
package-lock.json
generated
7326
package-lock.json
generated
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue