system/Database/DatabaseManager.php
/**
     * Delete a resource from the database table
     *
     * Call to this method directly on a table DB::table('tableName')->delete(); deletes all the resourses.
     * If soft delets are not enabled, resources will be deleted parmanently
     * @return bool True on success, False on failure
     */
Delete a resource from the database table
Call to this method directly on a table DB::table('tableName')->delete(); deletes all the resourses.
If soft delets are not enabled, resources will be deleted parmanently
@return bool True on success, False on failure
Delete a resource from the database table Call to this method directly on a table DB :: table ( ' tableName ' ) - > delete () ; deletes all the resourses . If soft delets are not enabled resources will be deleted parmanently @return bool True on success False on failure
public function delete()
    {   
        if(empty($this->queryData))
        {
            $this->prepareDelete(true);
            $rows = $this->executeStatement($this->query);
            session(['affectedRows' => $rows]);
            return $rows > 0;
        }
        if($this->isSoftDeletes())
        {
            $data = [
                'deleted_at' => date('Y-m-d H:i:s')
            ];
            return $this->update($data);
        }
        $this->prepareDelete();
        $stmt = $this->bindQueryData($this->query, $this->queryData);
        return $this->executeUpdate($stmt);
    }
public function delete ( ) { if ( empty ( $ this -> queryData ) ) { $ this -> prepareDelete ( true ) ; $ rows = $ this -> executeStatement ( $ this -> query ) ; session ( [ 'affectedRows' => $ rows ] ) ; return $ rows > 0 ; } if ( $ this -> isSoftDeletes ( ) ) { $ data = [ 'deleted_at' => date ( 'Y-m-d H:i:s' ) ] ; return $ this -> update ( $ data ) ; } $ this -> prepareDelete ( ) ; $ stmt = $ this -> bindQueryData ( $ this -> query , $ this -> queryData ) ; return $ this -> executeUpdate ( $ stmt ) ; }
Delete a resource from the database table
 Call to this method directly on a table DB::table('tableName')->delete(); deletes all the resourses.
Delete a resource from the database table Call to this method directly on a table DB :: table ( ' tableName ' ) - > delete () ; deletes all the resourses .