bonsoir,
---------------------------------------
SQLSTATE[42S22]: Column not found: 1054 Unknown column 'updated_at' in 'field list' (SQL: insert into `admins` (`name`, `password`, `role`, `email`, `telNumber`, `updated_at`, `created_at`) values (?, ?, ?, ?, ?, ?, ?)) (Bindings: array ( 0 => 'adel', 1 => '$2y$08$sQvBCXmuNngFSmDy82h1L.gQjjX8.xwwx4lV63XNXTWv3u8yOH.lq', 2 => 'simple', 3 => 'aze@az.dd', 4 => '2323165', 5 => '2013-10-16 21:56:09', 6 => '2013-10-16 21:56:09', ))
---------------------------------------
cette exception apparaitre
dans le model j' ai pas de created ni updates
meme dans le Schema j'ai pas de timestamp()
la seul chose que j'ai oublié la premiere fois dans le model et j'ai créer c'est deux champs
mais j'ai supprimé
jai redemarrer le serveur et meme le probleme apparaitre
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50 <?php use Illuminate\Auth\UserInterface; use Illuminate\Auth\Reminders\RemindableInterface; class Admin extends Eloquent implements UserInterface, RemindableInterface{ protected $table = 'admins'; protected $fillable = array('name', 'email', 'telNumber', 'role', 'password'); protected $guarded = array('id'); public static $rules = array( 'name'=>'required|min:2', 'telNumber'=>'required|max:12', 'password'=> 'required|min:5' ); public static function validate($data){ return Validator::make($data, static::$rules); } public function getAuthIdentifier() { return $this->getKey(); } /** * Get the password for the user. * * @return string */ public function getAuthPassword() { return $this->password; } /** * Get the e-mail address where password reminders are sent. * * @return string */ public function getReminderEmail() { return $this->email; } }
Partager