public function addBlockTop(Request $request)
    {
        // AUTHORIZE ... COMES HERE
        $contents = File::get($request['location']);
        $page = $this->page->getById($request['page_id']);
        $this->pageblock->addBlockTop($contents, $page, $request['name']);
        //return $pageblock;
        return 'success';
    }
public function addBlockTop(Request $request)
    {
        // AUTHORIZE ... COMES HERE
        $contents = File::get($request['location']);
        $page = $this->page->getById($request['page_id']);
        $this->pageblock->addBlockTop($contents, $page, $request['name']);
        //return $pageblock;
        return 'success';
    }
public function addBlockTop ( Request $ request ) { // AUTHORIZE ... COMES HERE $ contents = File :: get ( $ request [ 'location' ] ) ; $ page = $ this -> page -> getById ( $ request [ 'page_id' ] ) ; $ this -> pageblock -> addBlockTop ( $ contents , $ page , $ request [ 'name' ] ) ; //return $pageblock; return 'success' ; }
Add Block From Location To Top of Page and Store to Database

@param  Request $request
@return string
Add Block From Location To Top of Page and Store to Database