original_string: public function store($attributes = [])
      {
          // Set the attributes
          $attributes = (!empty($attributes))? $attributes : $this->app->request->input();
  
          // Create the record
          $result = $this->model->create($attributes);
  
          // Return results
          return [
              'success' => true,
              'id' => $result['id'],
              'data' => $result
          ];
      }
code: public function store($attributes = [])
      {
          // Set the attributes
          $attributes = (!empty($attributes))? $attributes : $this->app->request->input();
  
          // Create the record
          $result = $this->model->create($attributes);
  
          // Return results
          return [
              'success' => true,
              'id' => $result['id'],
              'data' => $result
          ];
      }
code_tokens: public function store ( $ attributes = [ ] ) { // Set the attributes $ attributes = ( ! empty ( $ attributes ) ) ? $ attributes : $ this -> app -> request -> input ( ) ; // Create the record $ result = $ this -> model -> create ( $ attributes ) ; // Return results return [ 'success' => true , 'id' => $ result [ 'id' ] , 'data' => $ result ] ; }
docstring: Stores a newly created resource in storage
  
  @param array $params Resource attributes
  @return array Response
docstring_tokens: Stores a newly created resource in storage