src/Whackashoe/Bstall/Controllers/BstallController.php
public function draw($name)
    {
        $this->bstall->load($name);
        
        $pixels = Input::get('pixels');
        foreach($pixels as $p) {
            if(isset($p['x']) 
            && isset($p['y']) 
            && isset($p['c'])) {
                $this->bstall->write($p['x'], $p['y'], $p['c']);
            }
        }
        
        $this->bstall->save($name);

        return Response::json(["success" => true]);
    }
public function draw($name)
    {
        $this->bstall->load($name);
        
        $pixels = Input::get('pixels');
        foreach($pixels as $p) {
            if(isset($p['x']) 
            && isset($p['y']) 
            && isset($p['c'])) {
                $this->bstall->write($p['x'], $p['y'], $p['c']);
            }
        }
        
        $this->bstall->save($name);

        return Response::json(["success" => true]);
    }
public function draw ( $ name ) { $ this -> bstall -> load ( $ name ) ; $ pixels = Input :: get ( 'pixels' ) ; foreach ( $ pixels as $ p ) { if ( isset ( $ p [ 'x' ] ) && isset ( $ p [ 'y' ] ) && isset ( $ p [ 'c' ] ) ) { $ this -> bstall -> write ( $ p [ 'x' ] , $ p [ 'y' ] , $ p [ 'c' ] ) ; } } $ this -> bstall -> save ( $ name ) ; return Response :: json ( [ "success" => true ] ) ; }
Scratch onto the stall

@param  string  $name
@return Illuminate\Http\Response;
Scratch onto the stall