File tree Expand file tree Collapse file tree 1 file changed +58
-0
lines changed Expand file tree Collapse file tree 1 file changed +58
-0
lines changed Original file line number Diff line number Diff line change
1
+ <script setup>
2
+ import CodeHighlight from ' @/components/CodeHighlight.vue' ;
3
+
4
+ const code = ` <?php
5
+
6
+ namespace App\\ Models;
7
+
8
+ // use Illuminate\\ Contracts\\ Auth\\ MustVerifyEmail;
9
+ use Illuminate\\ Database\\ Eloquent\\ Factories\\ HasFactory;
10
+ use Illuminate\\ Foundation\\ Auth\\ User as Authenticatable;
11
+ use Illuminate\\ Notifications\\ Notifiable;
12
+
13
+ class User extends Authenticatable
14
+ {
15
+ use HasFactory, Notifiable;
16
+
17
+ /**
18
+ * The attributes that are mass assignable.
19
+ *
20
+ * @var array<int, string>
21
+ */
22
+ protected $fillable = [
23
+ 'name',
24
+ 'email',
25
+ 'password',
26
+ ];
27
+
28
+ /**
29
+ * The attributes that should be hidden for serialization.
30
+ *
31
+ * @var array<int, string>
32
+ */
33
+ protected $hidden = [
34
+ 'password',
35
+ 'remember_token',
36
+ ];
37
+
38
+ /**
39
+ * Get the attributes that should be cast.
40
+ *
41
+ * @return array<string, string>
42
+ */
43
+ protected function casts(): array
44
+ {
45
+ return [
46
+ 'email_verified_at' => 'datetime',
47
+ 'password' => 'hashed',
48
+ ];
49
+ }
50
+ }
51
+ `
52
+ </script >
53
+
54
+ <template >
55
+ <div class =" section" >
56
+ <CodeHighlight lang =" php" :code =" code" />
57
+ </div >
58
+ </template >
You can’t perform that action at this time.
0 commit comments