Saturday, August 27, 2016

$profile->getFillable()

$fillable[] = $profile->getFillable();
   
foreach ($fillable[0] as $key => $value ) {
    //var_dump("key=".$key);
    //var_dump("value=".$value);
    var_dump("value=".$request[$value]);   
}

Friday, August 19, 2016

To do list 19-Aug-2016

1. Data maintenance for 3 tables.

2. Explore on tabs.

3. Enhance flash message.

4. Dynamic label.

Sunday, August 14, 2016

git clone https://github.com/modestkdr/scrumwala.git

git clone https://github.com/modestkdr/scrumwala.git

Scrum/Agile Web App
Scrumwala is a scrum/agile web app that lets you create and manage projects with plan and work views, group issues in a project into sprints, set deadlines for issues, active sprints and projects and get reminders by email listing issues nearing deadline.

Saturday, August 13, 2016

insert update delete UserController.php

<?php

namespace App\Http\Controllers;

use Illuminate\Http\Request;

use App\Http\Requests;
use App\Http\Controllers\Controller;

class BloodPressureController extends Controller
{
    /**
     * Display a listing of the resource.
     *
     * @return \Illuminate\Http\Response
     */
 

Friday, August 12, 2016

To do list 13-Aug-2016

1. Understand more on laravel setup.

2. try npm install and gulp.

laravel-collections-php-arrays-on-steroids

1. https://scotch.io/tutorials/laravel-collections-php-arrays-on-steroids 
https://github.com/johnkariuki/laravel-collections.git

Laravel collections are one of the most powerful provisions of the Laravel framework. They are what PHP arrays should be, but better.
Laravel collections are what PHP arrays should be, but better.
In this tutorial, we will be going through a few tricks that may be handy when you are working with collections.

Thursday, August 4, 2016

eloquent relationships -- hasOne

1. create public function shape with hasOne relationships
class Member extends Model

    public function shape()
    {
       return $this->hasOne('App\Shape','part_id','part_id');
    }

2. Example with App\Member::with('shape')->find(1);
>>> App\Member::with('shape')->find(1);
=> App\Member {#751
     id: 1,
     part_id: "4882557",
     surname: "KRISHNAN",
     firstname: "KUMARESAN",
     email: "kumar@aeonmalaysia.com.my",
     created_at: "2016-08-04 10:19:56",
     updated_at: "2016-08-04 10:19:56",
     shape: App\Shape {#756
       id: 1,
       part_id: "4882557",
       match_score: "4.00",
       scales_num: "2.00",
       scales_cls: "22.00",
       created_at: "2016-08-04 10:20:05",
       updated_at: "2016-08-04 10:20:05",
     },
   }
>>>

Wednesday, August 3, 2016

flash implementation

1. Reference
https://github.com/laracasts/flash

2. Installation
a. Run composer require laracasts/flash
b. And then, if using Laravel 5, include the service provider within config/app.php.

'providers' => [
    Laracasts\Flash\FlashServiceProvider::class,
];

3.Usage
a. Within your controllers, before you perform a redirect...

public function store()
{
    flash('Welcome Aboard!');

    return home();
}

b. Add include flash message on view.
@include('flash::message')

<!-- This is only necessary if you do Flash::overlay('...') -->
<script src="//code.jquery.com/jquery.js"></script>
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>

<script>
    $('#flash-overlay-modal').modal();
</script>

Tuesday, August 2, 2016

To do list 3-Aug-2016

1.start on pms project
- import / export excel
- maintenance
- show chart

2. Research on high chart alignment

3. Implement Inspinia theme

Monday, August 1, 2016