Page::where('id', $id)->update(array('image' => 'asdasd'));
Update Table
migrate:fresh Drop all tables and re-run all migrations
migrate:install Create the migration repository
migrate:refresh Reset and re-run all migrations
migrate:reset Rollback all database migrations
migrate:rollback Rollback the last database migration
migrate:status Show the status of each migration
for specific table
php artisan migrate:refresh --path=/database/migrations/table_name.php
$flight = AppFlight::find(1);
$flight->name = 'New Flight Name';
$flight->save();
$page = Page::find($id);
// Make sure you've got the Page model
if($page) {
$page->image = 'imagepath';
$page->save();
}
$name=Input::get('name');
DB::table('attendence')
->where('name',$name)
->update([
'checkedout' => $this->data->checkedout,
'type'=> $this->data->type,
]);
return redirect('attendence')->with('Thank You!');