mardi 28 juin 2016

Not able to save my data to database in laravel 5.2

I know this is very stupid question i'm asking about laravel. but seriously i'm little tired why my only three columns ( 'browser_version' , 'browser_major_version' , 'browser_plugins_installed' ) data are not storing in my database. and others are storing perfectly. may be i'm doing something wrong but what?? can any one help me with please. below is my database schema file and browser store method and database screenshot. please Note - issues is only that three column is not storing in database even i hardcoded that data in proper type.. still :(

Schema::create('browsers', function (Blueprint $table) {
            $table->increments('id');
            $table->string('browser_name')->nullable();
            $table->float('browser_version')->nullable();
            $table->integer('browser_major_version')->nullable();
            $table->string('browser_engine')->nullable();
            $table->float('browser_engine_version')->nullable();
            $table->text('browser_plugins_installed')->nullable();
            $table->string('browser_language')->nullable();
            $table->timestamps();
        });

 $browser = $this->browser->create([
            'browser_name' => $browser_name,
            'browser_version' => 50.00,
            'browser_major_version' => 51
            'browser_engine' => $browser_engine,
            'browser_engine_version' => $browser_engine_version,
            'browser_plugins_installed' => $browser_plugin_installed,
            'browser_language' => $browser_language
        ]);

$ownerModel->browsers()->save($browser);

enter image description here

i tried a lot.. but i don't know what the exact issue is :(



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire