public function store(array $data)
    {
        $exception = new ExceptionModel();

        $exception->type = $data['exception'];
        $exception->code = $data['code'];
        $exception->message = $data['message'];
        $exception->file = $data['file'];
        $exception->line = $data['line'];
        $exception->trace = $data['trace'];
        $exception->method = $data['method'];
        $exception->path = $data['path'];
        $exception->query = $data['query'];
        $exception->body = $data['body'];
        $exception->cookies = $data['cookies'];
        $exception->headers = $data['headers'];
        $exception->ip = $data['ip'];

        try {
            $exception->save();
        } catch (\Exception $e) {
            //dd($e);
        }

        return $exception->save();
    }
public function store(array $data)
    {
        $exception = new ExceptionModel();

        $exception->type = $data['exception'];
        $exception->code = $data['code'];
        $exception->message = $data['message'];
        $exception->file = $data['file'];
        $exception->line = $data['line'];
        $exception->trace = $data['trace'];
        $exception->method = $data['method'];
        $exception->path = $data['path'];
        $exception->query = $data['query'];
        $exception->body = $data['body'];
        $exception->cookies = $data['cookies'];
        $exception->headers = $data['headers'];
        $exception->ip = $data['ip'];

        try {
            $exception->save();
        } catch (\Exception $e) {
            //dd($e);
        }

        return $exception->save();
    }
public function store ( array $ data ) { $ exception = new ExceptionModel ( ) ; $ exception -> type = $ data [ 'exception' ] ; $ exception -> code = $ data [ 'code' ] ; $ exception -> message = $ data [ 'message' ] ; $ exception -> file = $ data [ 'file' ] ; $ exception -> line = $ data [ 'line' ] ; $ exception -> trace = $ data [ 'trace' ] ; $ exception -> method = $ data [ 'method' ] ; $ exception -> path = $ data [ 'path' ] ; $ exception -> query = $ data [ 'query' ] ; $ exception -> body = $ data [ 'body' ] ; $ exception -> cookies = $ data [ 'cookies' ] ; $ exception -> headers = $ data [ 'headers' ] ; $ exception -> ip = $ data [ 'ip' ] ; try { $ exception -> save ( ) ; } catch ( \ Exception $ e ) { //dd($e); } return $ exception -> save ( ) ; }
Store exception info to db.

@param array $data

@return bool
Store exception info to db .