common/repositories/PagesRepository.php
/**
    * @param $data MetaData Array 
    * Store a newly created resource in storage.
    */
@param $data MetaData Array
Store a newly created resource in storage.
@param $data MetaData Array Store a newly created resource in storage .
public function saveMetadata($data){
        if(count($data)>2){
            $this->meta->page_id = $data['page_id'];
            $this->meta->name = $data['name'];
            $this->meta->content = $data['content'];
            if($this->meta->save($data)){
                return ['status'=>'success'];
            }else{
                return ['status'=>'error','message'=>'error in save data'];
            }
        }else{
            return false;
        }
    }
public function saveMetadata ( $ data ) { if ( count ( $ data ) > 2 ) { $ this -> meta -> page_id = $ data [ 'page_id' ] ; $ this -> meta -> name = $ data [ 'name' ] ; $ this -> meta -> content = $ data [ 'content' ] ; if ( $ this -> meta -> save ( $ data ) ) { return [ 'status' => 'success' ] ; } else { return [ 'status' => 'error' , 'message' => 'error in save data' ] ; } } else { return false ; } }
@param $data MetaData Array
 Store a newly created resource in storage.
@param $data MetaData Array Store a newly created resource in storage .